Skip to contentSkip to conversation

kswapd fix & logic improvement

PATCH Rik van Riel 1 participant 1 message Mar 3, 1998 1 message not in the archive Memory management

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Jani Hakala

I patched pre5 with your diff. Now I get 'kswapd: failed, got 73 of 128' messages all the time.

Maybe you should play around a little with /proc/sys/vm/swapctl and /proc/sys/vm/freepages...
A 1:2:4 ratio for freepages usualy works wonders.
And a echo "10 3 1 3 0 0 0 0 1024" > swapctl gives some improvement too. As a matter of fact, I'm currently (read:
now) removing some of the 1.1.xx artifacts from mm/vmscan.c...

Things will straighten up RSN, but until that time, you can:
- tune /proc/sys/vm/*
- tune mm/vmscan.c (just make it more agressive)

The main reason that you didn't get that message with the old kernel is that it doesn't show you the error, but you're right, I should limit the printout of the error (to once every 5 seconds?).

Rik.

+-----------------------------+------------------------------+
| For Linux mm-patches, go to | "I'm busy managing memory.." |
| my homepage (via LinuxHQ).  | [email protected]       |
| ...submissions welcome...   | http://www.fys.ruu.nl/~riel/ |
+-----------------------------+------------------------------+