From: Chris Snook <csnook@redhat.com>
To: "\"अभिजित भोपटकर (Abhijit Bhopatkar)\"" <bainonline@gmail.com>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@osdl.org>,
akpm@osdl.org, jgarzik@pobox.com
Subject: Re: [PATCH] [RFC] Throttle swappiness for interactive tasks
Date: Wed, 18 Apr 2007 13:04:17 -0400 [thread overview]
Message-ID: <46264F91.4070106@redhat.com> (raw)
In-Reply-To: <2ff216280704180510w28136a6cw6816f834593aff13@mail.gmail.com>
अभिजित भोपटकर (Abhijit Bhopatkar) wrote:
> The mm structures of interactive tasks are marked and
> the pages belonging to them are never shifted to inactive
> list in lru algorithm. Thus keeping interactive tasks in
> memory as long as possible.
> The interactivity is already determined by schedular so
> we reuse that knowledge to mark the mm structures.
>
> Signed-off-by: Abhijit Bhopatkar <bainonline@gmail.com>
> ---
Lying to the VM doesn't seem like the best way to handle this. A lot of tasks,
including interactive ones have some/many pages that they touch once during
startup, and don't touch again for a very long time, if ever. We want these
pages swapped out long before the box swaps out the working set of our
non-interactive processes.
I like the general idea of swap priority influenced by scheduler priority, but
if we're going to do that, we should do it in a general way that's independent
of scheduler implementation, so it'll be useful to soft real-time users and
still relevant if (when?) we replace the current scheduler with something else
lacking a special "interactive" flag.
-- Chris
next prev parent reply other threads:[~2007-04-18 17:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 12:10 [PATCH] [RFC] Throttle swappiness for interactive tasks अभिजित भोपटकर (Abhijit Bhopatkar)
2007-04-18 17:04 ` Chris Snook [this message]
2007-04-18 20:52 ` Rik van Riel
[not found] ` <2ff216280704182014h6ff2eed3g4301ee8d1bfbed14@mail.gmail.com>
2007-04-19 4:29 ` Rik van Riel
2007-04-19 5:22 ` Abhijit Bhopatkar
2007-04-19 7:07 ` Rik van Riel
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=46264F91.4070106@redhat.com \
--to=csnook@redhat.com \
--cc=akpm@osdl.org \
--cc=bainonline@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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