bitbake: cooker/server: Fix up 100% CPU usage at idle
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Apr 2015 14:57:07 +0000 (15:57 +0100)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 26 Jul 2015 13:13:56 +0000 (10:13 -0300)
commit20fd7ff9f813263e281d37f99c2bac7dc88e57a4
tree47fe747668d43928327c94c94501adc7514eeeb1
parentae50a12be3001a06a8a9b22f26f82c67e14f5b9b
bitbake: cooker/server: Fix up 100% CPU usage at idle

The recent inotify changes are causing a 100% cpu usage issue in the
idle handlers. To avoid this, we update the idle functions to optionally
report a float value which is the delay before the function needs to be
called again. 1 second is fine for the inotify handler, in reality its
more like 0.1s due to the default idle function sleep.

This reverts performance regressions of 1.5 minutes on a kernel build
and ~5-6 minutes on a image from scratch.

(Bitbake rev: 0e0ba408c2dce14a0fabd3fdf61d8465a031495b)

(Bitbake rev: 88dfe16b5abd804bae0c1e3b60cb93cb951cbc3f)

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