public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Bougues <nbougues-listes@axialys.net>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Problems with wait queues
Date: Wed, 26 Jun 2002 16:00:29 +0200	[thread overview]
Message-ID: <20020626140029.GA6310@kiwi> (raw)
In-Reply-To: <20020626105241.GA19512@win.tue.nl>

On Wed, Jun 26, 2002 at 12:52:41PM +0200, Andries Brouwer wrote:
> On Wed, Jun 26, 2002 at 12:32:43PM +0200, Nicolas Bougues wrote:
> 
> > Does anybody have any idea on what I may have done wrong, and why
> > would loadavg increase when vmstat show no activity ?
> 
> loadavg does not report what you think it reports
> 

As far as I understand, loadavg reports the average number of
processes in the TASK_RUNNING state.

What happens in my driver, I believe, is that :
- on timer interrupt, I do some stuff, and wake_up the waiting process
- then the loadavg is computed (seeing my waiting task as TASK_RUNNING)
- then the scheduler runs the task
- then the task goes immediatly back to sleep

>From this point of view, then my problem is just "cosmetic". Isn't
there a way to do things in a different order, so that I could still
get a meaningful(*) loadavg ?

(*): by meaningful, I mean representing the number of busy processes
at a random point in time.
--
Nicolas Bougues


  reply	other threads:[~2002-06-26 14:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26 10:32 Problems with wait queues Nicolas Bougues
2002-06-26 10:52 ` Andries Brouwer
2002-06-26 14:00   ` Nicolas Bougues [this message]
2002-06-26 14:17     ` Richard B. Johnson
2002-06-26 14:38       ` Nicolas Bougues
2002-06-26 21:49       ` David Woodhouse
2002-06-27 11:44         ` Richard B. Johnson
2002-06-27 12:36           ` Oliver.Neukum
2002-06-27 13:17           ` David Woodhouse

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=20020626140029.GA6310@kiwi \
    --to=nbougues-listes@axialys.net \
    --cc=aebr@win.tue.nl \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox