lkml.org 
[lkml]   [2011]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: msleep() an load average

> > 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.

As I am a great kernel hacker, all signals are blocked ;)

> > Is the loadavg metric broken beyond repair?
>
> No, this is expected behaviour. Uninterruptible sleeps count
> as I/O load.

Ah, now we come to the point. Is there any practical reason behind this
or was it just an igenious invention to annoy those smug userspace
developers? I don't see any real world I/O load here.

> regards,
> --
> js

Cheers
Dirk




\
 
 \ /
  Last update: 2011-05-04 15:57    [W:0.041 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site