diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-21 11:16:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-21 14:37:39 +0000 |
commit | e63723f59ad2f1e2e1ed11697e5bd18ca8b3b73e (patch) | |
tree | 2f11b200cb5cbadd1a861fee5fc6c7150cbabdaa /bitbake | |
parent | db45ddeeaf3c6c598f4a8ca67730e662d4e22232 (diff) | |
download | poky-e63723f59ad2f1e2e1ed11697e5bd18ca8b3b73e.tar.gz |
bitbake: cooker: Further optimise pyinotify
We currently add crazy numbers of watches on files. The per user limit is 8192
by default and on a system handling multiple builds, this can be an issue.
We don't need to watch all files individually, we can watch the directory containing
the file instead. This gives better resource utilisation and better performance
further reverting some of the performance regression seen with the introduction
of pyinotify.
(Bitbake rev: a2d441237916a99405b800c1a3dc39f860100a8c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 9086f92e5c..554dfbd24d 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -182,7 +182,7 @@ class BBCooker: | |||
182 | if not watcher: | 182 | if not watcher: |
183 | watcher = self.watcher | 183 | watcher = self.watcher |
184 | for i in deps: | 184 | for i in deps: |
185 | f = i[0] | 185 | f = os.path.dirname(i[0]) |
186 | if f in watcher.bbseen: | 186 | if f in watcher.bbseen: |
187 | continue | 187 | continue |
188 | watcher.bbseen.append(f) | 188 | watcher.bbseen.append(f) |