[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4DC1568B.2080004@gmail.com>
Date: Wed, 04 May 2011 15:37:15 +0200
From: Jiri Slaby <jirislaby@...il.com>
To: "Eibach, Dirk" <Eibach@...ys.de>
CC: linux-kernel@...r.kernel.org
Subject: Re: 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.
regards,
--
js
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists