linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: Rik van Riel <riel@nl.linux.org>
Cc: linux-mm@kvack.org
Subject: Re: process selection
Date: Mon, 14 Jun 1999 10:17:27 -0700 (PDT)	[thread overview]
Message-ID: <199906141717.KAA31065@google.engr.sgi.com> (raw)
In-Reply-To: <Pine.LNX.4.03.9906122156290.534-100000@mirkwood.nl.linux.org> from "Rik van Riel" at Jun 12, 99 10:00:30 pm

> 
> Could it be an idea to take the 'sleeping time' of each
> process into account when selecting which process to swap
> out?  Due to extreme lack of free time, I'm asking what
> you folks think of it before testing it myself...
>

You are right, sleep time is a good heuristic to determine 
the "swappability" of a process. 

Hmm, I wonder if this is what happended in your case: setiathome
probably had a big rss, but netscape and X probably had 
larger rss and got selected for stealing. 

These are just a couple of things probably worth trying out:
1. The stealing algorithm can be upgraded to steal more than just
SWAP_CLUSTER_MAX, for all the work it does.
2. Also, in swap_out, it might make sense to steal more than a
single page from a victim process, to balance the overhead of
scanning all the processes.

Kanoj
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

  parent reply	other threads:[~1999-06-14 17:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-12 20:00 Rik van Riel
1999-06-13  1:17 ` Andrea Arcangeli
1999-06-13  6:58   ` Rik van Riel
1999-06-14 17:17 ` Kanoj Sarcar [this message]
1999-06-14 17:46   ` Benjamin C.R. LaHaise
1999-06-14 19:26     ` Rik van Riel
1999-06-14 20:28       ` Benjamin C.R. LaHaise
1999-06-15 10:28 Antonino Sabetta
1999-06-17 23:25 ` Stephen C. Tweedie

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=199906141717.KAA31065@google.engr.sgi.com \
    --to=kanoj@google.engr.sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=riel@nl.linux.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