lkml.org 
[lkml]   [2006]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: Implement Swap Prefetching v25
On Mon, 13 Feb 2006, Christoph Lameter wrote:

> Date: Mon, 13 Feb 2006 13:16:00 -0800 (PST)
> From: Christoph Lameter <clameter@engr.sgi.com>
> To: David Lang <dlang@digitalinsight.com>
> Cc: Con Kolivas <kernel@kolivas.org>,
> linux kernel mailing list <linux-kernel@vger.kernel.org>,
> Andrew Morton <akpm@osdl.org>, ck list <ck@vds.kolivas.org>
> Subject: Re: [PATCH] mm: Implement Swap Prefetching v25
>
> On Mon, 13 Feb 2006, David Lang wrote:
>
>> On Mon, 13 Feb 2006, Christoph Lameter wrote:
>>> spare ram when swapping??? We are already under memory pressure. Why make
>>> it worse by getting rid of the few bits of available memory? If a system
>>> swaps then we are per definition in the bad performance range. Add more
>>> memory.
>> when a program exits it's memory is now free, rather then just waiting until
>> something uses this memory up normally, this patch attempts to fill that
>> memory with things that are expected to be useful (things that were swapped
>> out)
>
> Then trigger this action when a program exits and when you know there was
> enough freed up to justify such an action. However, this is still a
> heuristic. No one knows if the pages read from swap will be of any use at
> all. For all I know a process may want to allocate some memory and fail
> because the memory was needlessly spend to read in pages that no one
> needs.

this won't happen, becouse if a program requests memory the kernel will
through away data from the swap cache that's unchanged on disk (like the
memory just filled by this) to free up memory for the program.

you don't want to trigger this on a program exit becouse the system is
likly to be busy doing other things at that time, you want to try and do
this when the system is otherwise idle.

David Lang

--
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-13 22:22    [W:0.046 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site