linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: James A. Sutherland <jas88@cam.ac.uk>
To: Jonathan Morton <chromi@cyberspace.org>
Cc: Rik van Riel <riel@conectiva.com.br>,
	"Joseph A. Knapka" <jknapka@earthlink.net>,
	linux-mm@kvack.org
Subject: Re: suspend processes at load (was Re: a simple OOM ...)
Date: Mon, 23 Apr 2001 06:55:23 +0100	[thread overview]
Message-ID: <eng7eto17h5k5s32ued74vt988bhb4eiml@4ax.com> (raw)
In-Reply-To: <l03130317b70908428b4b@[192.168.239.105]>

On Sun, 22 Apr 2001 23:26:37 +0100, you wrote:

>>> We've crossed wires here: I know that's how the suspension approach
>>> works, I'm talking about the "working set" approach - which to me,
>>> sounds more likely to give both processes 50Mb each, and spend the
>>> next six weeks grinding the disks to powder!
>>
>>Indeed, in this case the working set approach won't work.
>
>Going back to my description of my algorithm from a few days ago, it
>selects *one* process at a time to penalise.  If processes are not
>re-ordered and remain with the same-sized working set, it will ensure that
>one of the large processes remains fully resident and runs to completion

"remains"? Neither process was able to get 100Mb of RAM; one got 75Mb,
the other got 25Mb. They are both now thrashing, and will continue
until the disks melt.

If you "penalise" one process, you are effectively suspending it - but
in a way that wastes CPU time and I/O bandwidth. Why bother?

>(as I described).  Thus the period in which the disks get churned is quite
>short.  When combined with suspension, the intensity of disk activity would
>also be reduced.
>
>Of course, if the working set of the swapped-out process decreases (as a
>result of being swapped out and/or suspended), it will eventually come off
>the penalised list and replace the resident one.  It is important to keep
>the period over which the working set is calculated fairly long, to
>minimise the frequency of oscillations resulting from this effect.  My
>algorithm takes this into account as well, with the period being
>approximately 5.5 minutes on 100Hz hardware.
>
>If further processes come in, increasing the working set further beyond the
>system limits, my algorithm selects another *single* process at a time to
>add to the penalised list.  This ensures that at any time, the maximum
>amount of physical memory is utilised by processes which are not subject to
>suspension or thrashing.

Your "penalised" processes are thrashing anyway. They might as well be
suspended, freeing up system resources which are otherwise wasted.

>Now, I suspect you guys have been thinking "hey, he's going to give
>processes memory *proportionate* to their working sets, which doesn't
>work!" - well, I realised early on it wasn't going to work that way.  :)

You seem to be creeping subtly towards process suspension :)


James.
--
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/

  reply	other threads:[~2001-04-23  5:55 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
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 [this message]
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=eng7eto17h5k5s32ued74vt988bhb4eiml@4ax.com \
    --to=jas88@cam.ac.uk \
    --cc=chromi@cyberspace.org \
    --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