mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anton Blanchard <anton@samba.org>
To: Lev Makhlis <mlev@despammed.com>
Cc: linux-kernel@vger.kernel.org, akpm@zip.com.au, riel@conectiva.com.br
Subject: Re: [RFC] [PATCH] [2.5.35] Run Queue Statistics
Date: Tue, 17 Sep 2002 12:59:08 +1000	[thread overview]
Message-ID: <20020917025907.GB15189@krispykreme> (raw)
In-Reply-To: <200209161820.44702.mlev@despammed.com>


Hi,

> This patch adds two counters, runque and runocc, similar to those
> in traditional UNIX systems, to measure the run queue occupancy.
> Every second, 'runque' is incremented by the run queue size, and
> 'runocc' is incremented by one if the run queue is not empty.
> 
> I am not comfortable about putting the calculation in the same function
> as the load average calculation, but I didn't want to call
> count_active_tasks() twice. Comments are welcome.

On a semi related note, vmstat wants to know the number of running,
blocked and swapped processes. strace vmstat one day and you will see it
currently opens /proc/*/stat (ie one open for each process) just to get
these stats.  Yet another place where the monitoring utilities disturb
the system way too much.

Can we get some things in /proc/stat to give us these numbers? Does
"swapped" make any sense on Linux?

Anton

  reply	other threads:[~2002-09-17  2:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-16 22:20 Lev Makhlis
2002-09-17  2:59 ` Anton Blanchard [this message]
2002-09-17  3:08   ` Rik van Riel
2002-09-17  3:20     ` [despammed] " Lev Makhlis
2002-09-17  3:21     ` Andrew Morton

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=20020917025907.GB15189@krispykreme \
    --to=anton@samba.org \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlev@despammed.com \
    --cc=riel@conectiva.com.br \
    /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

all inboxes | Powered by JetHome®