meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sw:yocto:bitbake:issues:add_watch [2022/11/01 16:34]
niziak
sw:yocto:bitbake:issues:add_watch [2022/11/13 16:40] (current)
niziak
Line 12: Line 12:
 Solution is to increase ''​max_user_watches''​ Solution is to increase ''​max_user_watches''​
 <code bash>​echo fs.inotify.max_user_watches=65536 | sudo tee -a /​etc/​sysctl.conf && sudo sysctl -p</​code>​ <code bash>​echo fs.inotify.max_user_watches=65536 | sudo tee -a /​etc/​sysctl.conf && sudo sysctl -p</​code>​
 +or even higher values.
 +
 +How to monitor used watches:
 +<code bash>
 +find /proc/*/fd -lname anon_inode:​inotify |
 +   cut -d/ -f3 |
 +   xargs -I '​{}'​ -- ps --no-headers -o '%p %U %c' -p '​{}'​ |
 +   uniq -c |
 +   sort -nr
 +</​code>​
 +from [[https://​unix.stackexchange.com/​questions/​444998/​how-to-set-and-understand-fs-notify-max-user-watches|How to set and understand fs.notify.max_user_watches]]