On 02/03/11 - 03:53:59PM, jprovazn(a)redhat.com wrote:
From: Jan Provaznik <jprovazn(a)redhat.com>
While-true loop w/o any sleep eats all system resources.
Hm, I'm not sure that this patch is what is needed. The fact of the matter is
that in both condor_refreshd and dbomatic, they should be blocking based on
events. While your patch will stop them from consuming all resources, it may
mask an underlying problem.
condor_refreshd should block indefinitely waiting from an update from condor
(which should only happen once every 15 minutes). Similarly, dbomatic should
block indefinitely waiting on a change to EventLog (which again, shouldn't
happen that often).
What's the failure scenario that you saw? Is it repeatable?
--
Chris Lalancette