[lkml]   [2011]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: msleep() an load average
On 05/04/2011 02:11 PM, Eibach, Dirk wrote:
> while(1) msleep_interruptible(1000);
> I appreciate their admiration, but still there are doubts in my mind: Is
> this code really any better?

Try to send it a signal, it will eat 100% of CPU without sleeping.

> Is the loadavg metric broken beyond repair?

No, this is expected behaviour. Uninterruptible sleeps count as I/O load.


 \ /
  Last update: 2011-05-04 15:39    [from the cache]
©2003-2011 Jasper Spaans