[bitbake-devel] [PATCH] bitbake: Add pyinotify to lib/

Robert Yang liezhi.yang at windriver.com
Mon Jan 19 22:53:15 UTC 2015



On 01/19/2015 06:28 PM, Richard Purdie wrote:
> 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.

Thanks, watch dirs seems reasonable, I will do more investigations on it.

// Robert

>
> Cheers,
>
> Richard
>
>
>



More information about the bitbake-devel mailing list