Re: Kswapd future (was: Re: new kmod.c - debuggers and testers needed)

Perry Harrington (pedward@sun4.apsoft.com)
Tue, 14 Apr 1998 17:44:15 -0700 (PDT)


> >
> > I was thinking that kswapd could use some of it's spare time to do an LRU
> > paging scan, consolidate free space, and possibly do remapping of process
> > memory spaces to make them more efficient (map pages to contiguous chunks
> > of memory and swap).
>
> Unfortunately, kswapd doesn't have such a thing as 'spare time'.
> It is a kernel daemon that does what's neccessary, but we want
> to keep it's CPU/IO footprint absolutely minimal since all other
> applications are more important...

Is there some way you could tap into the "idle" task processing time to do this?
Solaris has a kernel thread which implements page scanning. It's CPU usage
and aggressiveness is dictated by the slowscan, fastscan, maxpgio, and lotsfree.
What is actually more intensive, doing page scanning and doing speculative
paging, or doing desperation swapping on the fly?

>
> Rik.

--Perry

-- 
Perry Harrington       Linux rules all OSes.    APSoft      ()
email: perry@apsoft.com 			Think Blue. /\

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu