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

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?
 
> For example, if the swap disks are not busy, we scan the least
> frequently used inactive pages, and write them out in nice large
> chunks. The pages are moved to another list, but not evicted from
> memory. The normal swapping algorithm is used to decide when/if to
> actually evict these pages from memory.  If they are used prior to
> being evicted, they can be remarked active (and their blocks on swap
> marked as unused) without a disk seek.

If you write out the pages then one could simply mark them as clean and 
note where the location is in swap space.
--
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 18:39 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 ` Christoph Lameter [this message]
2005-08-19 20:20   ` Preswapping Gregory Maxwell
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=Pine.LNX.4.62.0508191137350.15836@schroedinger.engr.sgi.com \
    --to=clameter@engr.sgi.com \
    --cc=gmaxwell@gmail.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