linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Q: I can get kswapd to run but not swap anything...
@ 1998-06-12  5:18 Eric W. Biederman
  0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 1998-06-12  5:18 UTC (permalink / raw)
  To: linux-mm


With my shmfs code on linux-2.1.101 after untaring two kernel
source trees, on my 32M machine, kswapd eats about 20% of the cpu time
according to swap but nearly nothing is written out.  

Currently I use shrink_mmap to write out pages.  If a page has a use
count of 1 and is dirty it gets written to swap and the dirty bit
removed instead of being removed from the page cache, and shrink_mmap
returns 1.

With 2.0.32 using exactly the same approach everything works fine, and
while there is a slight performance hit for lots of writes, the system
is always quite usable.

Does anyone have a clue why my machine becomes nearly unusable with 
2.1.101 in this fashion?

I am asking this here because a) my changes are quite small and have
worked reasonably well on other kernels, and b) something else may be
able to trigger the same condition.

If it helps at all I am pretty certain that running lots of file
writes through my filesystem is a pretty good way of fragmenting
memory.

Eric

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-12  5:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-12  5:18 Q: I can get kswapd to run but not swap anything Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox