bitbake: cooker: Further optimise pyinotify
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Apr 2015 14:57:04 +0000 (15:57 +0100)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 26 Jul 2015 13:13:55 +0000 (10:13 -0300)
commit9d26b86759ddad28e274cd0b10039e5d9468553b
tree395be42bcac1b3407bf42e9bc6d2e50ef4754a1f
parent37873380f0d0a07fb0fb0bcf3b311f76ca11ce3d
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)

(Bitbake rev: 6ab3945fc54b2a242292a874d78ebd8cccb99573)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
bitbake/lib/bb/cooker.py