[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46264F91.4070106@redhat.com>
Date: Wed, 18 Apr 2007 13:04:17 -0400
From: Chris Snook <csnook@...hat.com>
To: "अभिजित भोपटकर (Abhijit Bhopatkar)" <bainonline@...il.com>
CC: Linux Kernel list <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...l.org>, akpm@...l.org,
jgarzik@...ox.com
Subject: Re: [PATCH] [RFC] Throttle swappiness for interactive tasks
अभिजित भोपटकर (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@...il.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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists