linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <H.H.vanRiel@fys.ruu.nl>
To: Moshe Zadka <moshez@math.huji.ac.il>
Cc: linux-mm@kvack.org
Subject: Re: ideas for a swapping daemon
Date: Fri, 19 Dec 1997 12:24:16 +0100 (MET)	[thread overview]
Message-ID: <Pine.LNX.3.91.971219121900.14931A-100000@mirkwood.dummy.home> (raw)
In-Reply-To: <Pine.LNX.3.96.971218205013.1610B-100000@ladybug.org.il>

On Thu, 18 Dec 1997, Moshe Zadka wrote:

> Seems like a good idea. But experience with vhand
> shows that what we should be most careful about is 
> waking the swapping daemon too often, consuming 
> resources. So, if anyone is writing it (I might
> start by patching kswapd's routines to allow 
> "forcing"), please keep an easily configurable
> parameter (perhaps run-time adjusted through proc-fs)
> controlling how often it is woken up, for easier
> determining of the heuristics.

The kswapd part I can do in several hours too, the real
issue is scheduling... If we have the scheduling part
correct, the kswapd part is only optional...

We should start by adding SLEEP_TIME and IN_CORE time
entries to the task_struct. Then we have to write a
mechanism to wake up the daemon to decide to swap which
program.

Only then are the extra lines to kswapd functional
(otherwise, the system will be paging in the process we
just swapped out :-)

What we need first is a generally agreed upon algorithm
on how to decide:
- when to swap (tunable)
- what to swap (tunable?)
- how agressive we should be (tunable)
- how long programs can be swapped out/in (tunable)

Even though most of the above is tunable, we still need
to agree on the algoritms and design the program...
When the design is finished, we can have the daemon up and
running in a few days.

Rik.
+-----------------------------+------------------------------+
| For Linux mm-patches, go to | "I'm busy managing memory.." |
| my homepage (via LinuxHQ).  | H.H.vanRiel@fys.ruu.nl       |
| ...submissions welcome...   | http://www.fys.ruu.nl/~riel/ |
+-----------------------------+------------------------------+

      reply	other threads:[~1997-12-19 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-18 16:21 Benjamin LaHaise
1997-12-18 18:53 ` Moshe Zadka
1997-12-19 11:24   ` Rik van Riel [this message]

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=Pine.LNX.3.91.971219121900.14931A-100000@mirkwood.dummy.home \
    --to=h.h.vanriel@fys.ruu.nl \
    --cc=linux-mm@kvack.org \
    --cc=moshez@math.huji.ac.il \
    /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