From: Pavel Machek <pavel@suse.cz>
To: Sean Hunter <sean@dev.sportingbet.com>,
bobyetman@att.net, linux-kernel@vger.kernel.org
Subject: Re: Loadavg calculation
Date: Mon, 6 Nov 2000 23:39:57 +0100 [thread overview]
Message-ID: <20001106233957.A392@bug.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.21.0011050746090.634-100000@juryrig.worldnet.att.net> <20001106081426.I6131@bart.dev.sportingbet.com>
In-Reply-To: <20001106081426.I6131@bart.dev.sportingbet.com>; from Sean Hunter on Mon, Nov 06, 2000 at 08:14:26AM +0000
Hi!
> > I'm working a project a work that is using Linux to run some very
> > math-intensive calculations. One of the things we do is use the 1-minute
> > loadavg to determine how busy the machine is and can we fire off another
> > program to do more calculations. However, there's a problem with that.
> >
> > Because it's a 1 minute load average, there's quite a bit of lag time from
> > when 1 program finishes until the loadavg goes down below a threshold for
> > our control mechanism to fire off another program.
> >
> > Let me give an example (all on a 1-cpu PC)
> >
> > HH:MM:SS
> > 00:00:00 fire off 4 programs
> > 00:01:00 loadavg goes up to 4
> > 00:01:30 3 of the 4 programs finish loadavg still at 4
> > 00:02:20 load avg goes down to 1, below our threshold
> > 00:02:21 we fire off 3 more programs.
> >
> > We'd like to reduce that almost 50 second lag time. Is it possible, in
> > user-space, to duplicate the loadavg calculation period, say to a 15
> > second load average, using the information in /proc?
pavel@bug:~$ cat /proc/loadavg
0.00 0.00 0.00 2/46 395
pavel@bug:~$
The three values of 0.00 are loadavg averaged over different
time. Select the right one and you are done.
Pavel
--
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-10 21:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-05 12:55 Loadavg calculation bobyetman
2000-11-05 13:58 ` Andi Kleen
2000-11-05 14:01 ` bert hubert
2000-11-05 20:24 ` Albert D. Cahalan
2000-11-06 8:14 ` Sean Hunter
2000-11-06 22:39 ` Pavel Machek [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-11-07 14:20 Nathan Scott
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=20001106233957.A392@bug.ucw.cz \
--to=pavel@suse.cz \
--cc=bobyetman@att.net \
--cc=linux-kernel@vger.kernel.org \
--cc=sean@dev.sportingbet.com \
/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.