[bitbake-devel] [PATCH] bitbake: Add pyinotify to lib/
richard.purdie at linuxfoundation.org
Mon Jan 19 10:28:45 UTC 2015
On Mon, 2015-01-19 at 16:10 +0800, Robert Yang wrote:
> The inotify watcher numbers need less than "sysctl -n fs.inotify.max_user_watches",
> otherwise we may get the errors like:
> WatchManagerError: add_watch: cannot watch /path/to/build/conf/bblayers.conf
> WD=-1, Errno=No space left on device (ENOSPC),
> It's easy to meet this error if we run many builds at the same time,
> On Ubuntu Ubuntu 12.04.3 x86_64, the default value is "8192".
> Can we add some counters in cooker.py (or other files) to check the
> value and print ERRORS/WARNINGS, please ? Ther current "ENOSPC" errors
> is not easy to debug.
> I'd like to work on it if that make sense.
Surely we should just trap the ENOSPC error and translate it into a
human readable error message? I don't like the idea of adding counters
into the system.
To improve the situation from a variety of perspectives, I'm thinking we
should perhaps just place watches on the directories containing the
files rather than the files themselves since this would drastically
reduce the number of watches we need. The downside is we may have to be
more careful about how we invalidate the caches.
More information about the bitbake-devel