Re: [PATCH] mm: Implement Swap Prefetching v23

Nick Piggin
2006-02-10T04:07:00Z

Con Kolivas wrote:
> On Friday 10 February 2006 14:25, Andrew Morton wrote:
>
>>Con Kolivas <kernel@kolivas.org> wrote:
>>
>>>Here's a respin with Nick's suggestions and a modification to not cost us
>>>extra slab on non-numa.
>>
>>v23? I'm sure we can do better than that.
>
>
> :D
>
>
>>>This patch implements swap prefetching when the vm is relatively idle and
>>>there is free ram available.
>>
>>I think "free ram available" is the critical thing here. If it doesn't
>>evict anyhing else then OK, it basically uses unutilised disk bandwidth for
>>free.
>>
>>But where does it put the pages? If it was really "free", they'd go onto
>>the tail of the inactive list.
>
>
> It puts them in swapcache. This seems to work nicely as a nowhere-land place
> where they don't have much affect on anything until we need them or need more
> ram. This has worked well, but I'm open to other suggestions.
>

Well they go on the head of the inactive list and will kick out file
backed pagecache. Which was my concern about reducing the usefulness
of useful swapping on desktop systems.

--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com