From: Jiri Slaby <jirislaby@gmail.com>
To: "Eibach, Dirk" <Eibach@gdsys.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: msleep() an load average
Date: Wed, 04 May 2011 15:37:15 +0200 [thread overview]
Message-ID: <4DC1568B.2080004@gmail.com> (raw)
In-Reply-To: <48D3D52125C49B43AE880038E2E5314BB5BE9D@SRV101.gdsys.de>
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
next prev parent reply other threads:[~2011-05-04 13:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 12:11 msleep() an load average Eibach, Dirk
2011-05-04 13:37 ` Jiri Slaby [this message]
2011-05-04 13:54 ` Eibach, Dirk
2011-05-04 14:30 ` Clemens Ladisch
2011-05-04 14:47 ` Eibach, Dirk
2011-05-04 13:47 ` Clemens Ladisch
2011-05-04 14:04 ` Eibach, Dirk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DC1568B.2080004@gmail.com \
--to=jirislaby@gmail.com \
--cc=Eibach@gdsys.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.