* vhand design flaw :((, new patch instead
@ 1997-12-09 17:43 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 1997-12-09 17:43 UTC (permalink / raw)
To: linux-mm; +Cc: linux-kernel
Hi,
I found (much to my dissapointment) a fundamental design flaw
in my vhand patch that explains very well the different results
people have had with my patch. It doesn't affect stability,
just performance, so when vhand works for you, there's no
reason not to use it anymore, except for the fact that something
better's around...
The new patch consists of two parts:
- the anti-fragmentation patch from Zlatko Calusic (really useful)
- kswapd now also ages mmap'ed pages. for this part I have just
copied some code from vmscan.c into mmap.c, so it should all
be rock-solid...
The results of this patch are:
- kswapd is more careful about kicking out mmap'ed pages and
buffers and as a result of this:
- kswapd takes more CPU time to swap out a page
- kswapd has to swap out less pages
- there are (far) less pagefaults
- now there's no vhand daemon that constantly uses CPU
I hope that the total CPU usage of kswapd hasn't increased
much, if it has increased at all. I for one know that system
performance was boosted quite a bit (more than with the vhand
patch).
If this runs for a lot of people, I'll even send it to Linus
(there's no new code in it, so we can consider this a bug-fix)
grtz,
Rik.
ps: making it a config option is also possible... We could
even consider adding another (simpler) aging algorithm to
kswapd for (huge) systems that have more I/O bandwith to spare
than they have CPU time.
--
Send Linux memory-management wishes to me: I'm currently looking
for something to hack...
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-09 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-09 17:43 vhand design flaw :((, new patch instead Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox