meta data for this page
  •  

Differences

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

Link to this comparison view

Next revision
Previous revision
sw:yocto:bitbake:issues:add_watch [2022/11/01 16:32] – created niziaksw:yocto:bitbake:issues:add_watch [2022/11/13 16:40] (current) niziak
Line 6: Line 6:
 pyinotify.WatchManagerError: add_watch: cannot watch /home/user/yocto/build/conf WD=-1, Errno=No space left on device (ENOSPC) pyinotify.WatchManagerError: add_watch: cannot watch /home/user/yocto/build/conf WD=-1, Errno=No space left on device (ENOSPC)
 </code> </code>
 +
 +Reason:
 +System already has increased ''max_user_watches'' to 32k, but running remote VSCode which ''watch'' changes in huge Yocto directory consumes it.
  
 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]]