mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: "Ray Lee" <ray-lk@madrabbit.org>
Cc: hamid.jahanjou@gmail.com, "Zan Lynx" <zlynx@acm.org>,
	"Andi Kleen" <andi@firstfloor.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] VM: Implements the swap-out page-clustering technique
Date: Wed, 10 Sep 2008 13:39:41 -0400	[thread overview]
Message-ID: <20080910133941.61ceb087@bree.surriel.com> (raw)
In-Reply-To: <2c0942db0809101008j55ea39dfx8dbf6284d4de749@mail.gmail.com>

On Wed, 10 Sep 2008 10:08:07 -0700
"Ray Lee" <ray-lk@madrabbit.org> wrote:
> On Wed, Sep 10, 2008 at 1:16 AM, Hamid R. Jahanjou
> <hamid.jahanjou@gmail.com> wrote:
> > I agree. As you said, we have two conflicting requirements here: on the
> > one hand one likes to swap as many pages as to satisfy the backing
> > storage "proper block IO size," on the other hand, one should not make a
> > process lose too many pages.
> 
> I'd much rather that one process lose a lot of pages than many
> processes lose a few. When a system is swap thrashing, each process
> has some of its active working set tossed to swap, which means *any*
> application you try to switch to is then sluggish. If it were only one
> application, then only that one takes the penalty hit when the user
> switches focus and context.

Better still, with proper IO clustering that one process can get
its pages back into memory quite quickly.

Paging of anonymous pages is limited by disk seeks, so minimizing
those is a top goal.

-- 
All rights reversed.

  reply	other threads:[~2008-09-10 17:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 12:04 Hamid R. Jahanjou
2008-09-04 23:14 ` Rik van Riel
2008-09-04 23:14 ` Andrew Morton
2008-09-05  7:45   ` Hamid R. Jahanjou
2008-09-05  6:58     ` Andrew Morton
2008-09-05  9:19 ` Andi Kleen
2008-09-05 20:27   ` Hamid R. Jahanjou
2008-09-05 19:45     ` Andi Kleen
2008-09-06  5:42       ` Rik van Riel
2008-09-08  0:28         ` Zan Lynx
2008-09-08  0:55           ` Rik van Riel
2008-09-10  8:16             ` Hamid R. Jahanjou
2008-09-10 17:08               ` Ray Lee
2008-09-10 17:39                 ` Rik van Riel [this message]
2008-09-08  3:50 ` Li Yu
2008-09-08  9:51   ` hamidreza jahanjou
     [not found]     ` <48C4FECF.2000708@gmail.com>
2008-09-08 10:31       ` Li Yu
2008-09-24 13:56 ` Luiz Fernando N. Capitulino

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=20080910133941.61ceb087@bree.surriel.com \
    --to=riel@redhat.com \
    --cc=andi@firstfloor.org \
    --cc=hamid.jahanjou@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray-lk@madrabbit.org \
    --cc=zlynx@acm.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

all inboxes | Powered by JetHome®