From: Robert Yang <liezhi.yang@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>,
bitbake-devel <bitbake-devel@lists.openembedded.org>
Subject: Re: [PATCH] bitbake: Add pyinotify to lib/
Date: Mon, 19 Jan 2015 16:10:30 +0800 [thread overview]
Message-ID: <54BCBBF6.4020904@windriver.com> (raw)
In-Reply-To: <1421158296.31262.17.camel@linuxfoundation.org>
Resend since the previous message body is too big.
Hi RP,
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.
// Robert
On 01/13/2015 10:11 PM, Richard Purdie wrote:
> We need inotify support within bitbake and pyinotify provides the best
> mechanism to add this. We have a few options:
>
> a) Depend on pyinotify from the system
> b) Add in our own copy
> c) Only use pyinotify in cases like the memory resident server
>
> For a), it would mean adding in dependencies, updating documentation and
> generally creating churn for users as well as having implications for things
> like the build-appliance recipe.
>
> It turns out that glibc has the C functionality we need from version 2.4
> onwards (2006) and that we just need a single python file for b), there
> is no binary module needed. We therefore add in a copy of pyinotify 0.9.5
> into the tree meaning we can depend on it simply and unconditionally.
>
> c) is unattractive as we need fewer possible code paths, not more.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/bitbake/lib/pyinotify.py b/bitbake/lib/pyinotify.py
> new file mode 100644
> index 0000000..2dae002
> --- /dev/null
> +++ b/bitbake/lib/pyinotify.py
> @@ -0,0 +1,2416 @@
> +#!/usr/bin/env python
next prev parent reply other threads:[~2015-01-19 8:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-13 14:11 [PATCH] bitbake: Add pyinotify to lib/ Richard Purdie
2015-01-19 8:10 ` Robert Yang [this message]
2015-01-19 10:28 ` Richard Purdie
2015-01-19 22:53 ` Robert Yang
2015-01-20 2:25 ` Robert Yang
2015-01-20 8:55 ` Richard Purdie
2015-01-20 9:06 ` Robert Yang
2015-01-20 9:33 ` Robert Yang
2015-01-22 9:10 ` Robert Yang
2015-01-22 12:50 ` Burton, Ross
2015-01-23 0:54 ` Robert Yang
2015-01-23 1:11 ` Robert Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54BCBBF6.4020904@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.