linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Gregory Maxwell <gmaxwell@gmail.com>
To: Christoph Lameter <clameter@engr.sgi.com>
Cc: linux-mm@kvack.org
Subject: Re: Preswapping
Date: Fri, 19 Aug 2005 16:20:16 -0400	[thread overview]
Message-ID: <e692861c050819132017971a1a@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0508191137350.15836@schroedinger.engr.sgi.com>

On 8/19/05, Christoph Lameter <clameter@engr.sgi.com> wrote:
> On Thu, 18 Aug 2005, Gregory Maxwell wrote:
> 
> > With the ability to measure something approximating least frequently
> > used inactive pages now, would it not make sense to begin more
> > aggressive nonevicting preswapping?
> 
> Maybe. What would be the overhead for cases in which swapping is not
> needed?

Extraneous disk IO, perhaps a little extra overhead in having another
list to walk.. Oddball additional allocations on the swap partition.

I think none of these would be insurmountable obstacles.  Write out
should heed the laptop mode setting to avoid spinning up the disk..
the activity should be suppressed whenever the disk is busy.

This also puts things in potentially better shape so that things can
be swapped out in nice contiguous runs and swapped-in with nice
contiguous runs.

A further step might be to arrange things so that preemptive swapping
and swsup shared many of the same structures.. so a preemptive
swapping box would just be perpetually setting up it's freeze.. a
suspend to disk would just require quiesce the processes and pushing
out the (hopefully few) remaining pages.
--
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-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2005-08-19 20:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 21:58 Preswapping Gregory Maxwell
2005-08-19 18:39 ` Preswapping Christoph Lameter
2005-08-19 20:20   ` Gregory Maxwell [this message]
2005-08-22 22:48 ` Preswapping Marcelo Tosatti

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=e692861c050819132017971a1a@mail.gmail.com \
    --to=gmaxwell@gmail.com \
    --cc=clameter@engr.sgi.com \
    --cc=linux-mm@kvack.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