Skip to contentSkip to conversation

free swap space when (re)activating page

PATCH Al Boldi 1 participant 1 message Feb 21, 2007

lore
Share & tools
lore

Al Boldi

author
#0 lore raw
Quoted 6 lines · Rik van Riel
Quoted 1 line · Rik van Riel

... because I think this is what my patch does :)

Never mind, I see it now.

The attached patch should be correct.

Your patch seems to improve the situation a little bit, but the numbers still look weird, especially for swap-in, which gets progressively slower.

RAM 512mb , SWAP 1G
#mount -t tmpfs -o size=1G none /dev/shm
#time cat /dev/full > /dev/shm/x.dmp
15sec
#time cat /dev/shm/x.dmp > /dev/null
58sec
#time cat /dev/shm/x.dmp > /dev/null
72sec
#time cat /dev/shm/x.dmp > /dev/null
85sec
#time cat /dev/shm/x.dmp > /dev/null
93sec
#time cat /dev/shm/x.dmp > /dev/null
99sec

Thanks!

--
Al