From: Jean Francois Martinez <jfm2@club-internet.fr>
To: "James A. Sutherland" <jas88@cam.ac.uk>
Cc: Rik van Riel <riel@conectiva.com.br>,
Jonathan Morton <chromi@cyberspace.org>,
"Joseph A. Knapka" <jknapka@earthlink.net>,
linux-mm@kvack.org
Subject: Re: suspend processes at load (was Re: a simple OOM ...)
Date: Sun, 22 Apr 2001 22:33:15 +0200 [thread overview]
Message-ID: <3AE3400B.80B2F1BF@club-internet.fr> (raw)
In-Reply-To: <usc6etgvdlapakkeh57lcr8qu5ji7ca142@4ax.com>
"James A. Sutherland" a ecrit :
> On Sun, 22 Apr 2001 15:57:32 -0300 (BRST), you wrote:
>
> >On Sun, 22 Apr 2001, Jonathan Morton wrote:
> >
> >> I think we're approaching the problem from opposite viewpoints.
> >> Don't get me wrong here - I think process suspension could be a
> >> valuable "feature" under extreme load, but I think that the
> >> working-set idea will perform better and more consistently under "mild
> >> overloads", which the current system handles extremely poorly.
> >
> >Could this mean that we might want _both_ ?
>
> Absolutely, as I said elsewhere.
>
> >1) a minimal guaranteed working set for small processes, so root
> > can login and large hogs don't penalize good guys
> > (simpler than the working set idea, should work just as good)
>
> Yep - this will help us under heavy load conditions, when the system
> starts getting "sluggish"...
>
> >2) load control through process suspension when the load gets
> > too high to handle, this is also good to let the hogs (which
> > would thrash with the working set idea) make some progress
> > in turns
>
> Exactly!
>
>
I find this funny because I suggested that idea in 1996 after 2.0 release.
I even gave an example (with an 8 megs box, how time change :-) from
a situation who could be handled only by stopping a process. That is
two processes who peek 5 Megs of memory in 1 ms (they are scaning
an array). Since your average disk needs some 20 ms to retrieve a
page that means both processes will spend nearly 100% of time waiting
for pages who have been stolen by the other so the only way is to stop
or swap one of them and let the other run alone for some time. But at that
time I was told Linux this was feature for high loads and Linux was not
being used there.
BTW this idea has been implemented in mainframes since the 60s.
Another idea in mainframes is that some processes can be swapped out
because you know they will be sleeping for a long time. The 3270
interface only interacts with the mainframe when user hits the enter key
and in whole screen mode this is when he has filled a whole page of text.
That means that when a process enters keyboard sleep it will probably
remain in that state for several minutes so in
case MVS needs memory it looks for TSO (interactive) process on keyboard
sleep, swaps them first and ask questions later.
Of course Unix has a differnt UI and I don't see a sleep class where
we can assume programs on it will be sleeping for minutes.
JFM
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2001-04-22 20:33 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-19 14:03 Jonathan Morton
2001-04-19 18:25 ` Dave McCracken
2001-04-19 18:32 ` James A. Sutherland
2001-04-19 20:23 ` Jonathan Morton
2001-04-20 12:14 ` Szabolcs Szakacsits
2001-04-20 12:02 ` Jonathan Morton
2001-04-20 14:48 ` Dave McCracken
2001-04-21 5:49 ` James A. Sutherland
2001-04-21 19:16 ` Joseph A. Knapka
2001-04-21 19:41 ` Jonathan Morton
2001-04-22 10:08 ` James A. Sutherland
2001-04-22 16:53 ` Jonathan Morton
2001-04-22 17:06 ` James A. Sutherland
2001-04-22 18:18 ` Jonathan Morton
2001-04-22 18:57 ` Rik van Riel
2001-04-22 19:41 ` James A. Sutherland
2001-04-22 20:33 ` Jean Francois Martinez [this message]
2001-04-22 20:21 ` Jonathan Morton
2001-04-22 20:36 ` Jonathan Morton
2001-04-22 19:01 ` James A. Sutherland
2001-04-22 19:11 ` Rik van Riel
2001-04-22 20:36 ` James A. Sutherland
2001-04-22 19:30 ` Jonathan Morton
2001-04-22 20:35 ` James A. Sutherland
2001-04-22 20:41 ` Rik van Riel
2001-04-22 20:58 ` James A. Sutherland
2001-04-22 21:26 ` Rik van Riel
2001-04-22 22:26 ` Jonathan Morton
2001-04-23 5:55 ` James A. Sutherland
2001-04-23 5:59 ` Rik van Riel
2001-04-21 20:29 ` Rik van Riel
2001-04-22 10:08 ` James A. Sutherland
-- strict thread matches above, loose matches on Subject: below --
2001-04-13 16:20 [PATCH] a simple OOM killer to save me from Netscape Rik van Riel
2001-04-16 12:17 ` suspend processes at load (was Re: a simple OOM ...) Szabolcs Szakacsits
2001-04-17 19:48 ` Rik van Riel
2001-04-18 21:32 ` Szabolcs Szakacsits
2001-04-18 20:38 ` James A. Sutherland
2001-04-18 23:25 ` Szabolcs Szakacsits
2001-04-18 22:29 ` Rik van Riel
2001-04-19 10:14 ` Stephen C. Tweedie
2001-04-19 13:23 ` Szabolcs Szakacsits
2001-04-19 2:11 ` Rik van Riel
2001-04-19 7:08 ` James A. Sutherland
2001-04-19 13:37 ` Szabolcs Szakacsits
2001-04-19 12:26 ` Christoph Rohland
2001-04-19 12:30 ` James A. Sutherland
2001-04-19 9:15 ` James A. Sutherland
2001-04-19 18:34 ` Dave McCracken
2001-04-19 18:47 ` James A. Sutherland
2001-04-19 18:53 ` Dave McCracken
2001-04-19 19:10 ` James A. Sutherland
2001-04-20 14:58 ` Rik van Riel
2001-04-21 6:10 ` James A. Sutherland
2001-04-19 19:13 ` Rik van Riel
2001-04-19 19:47 ` Gerrit Huizenga
2001-04-20 12:44 ` Szabolcs Szakacsits
2001-04-19 20:06 ` James A. Sutherland
2001-04-20 12:29 ` Szabolcs Szakacsits
2001-04-20 11:50 ` Jonathan Morton
2001-04-20 13:32 ` Szabolcs Szakacsits
2001-04-20 14:30 ` Rik van Riel
2001-04-22 10:21 ` James A. Sutherland
2001-04-20 12:25 ` Szabolcs Szakacsits
2001-04-21 6:08 ` James A. Sutherland
2001-04-20 12:18 ` Szabolcs Szakacsits
2001-04-22 10:19 ` James A. Sutherland
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=3AE3400B.80B2F1BF@club-internet.fr \
--to=jfm2@club-internet.fr \
--cc=chromi@cyberspace.org \
--cc=jas88@cam.ac.uk \
--cc=jknapka@earthlink.net \
--cc=linux-mm@kvack.org \
--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