linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: ebiederm+eric@npwt.net (Eric W. Biederman)
To: linux-mm@kvack.org
Subject: Q: I can get kswapd to run but not swap anything...
Date: 12 Jun 1998 00:18:53 -0500	[thread overview]
Message-ID: <m1zpfj42pu.fsf@flinx.npwt.net> (raw)


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

                 reply	other threads:[~1998-06-12  5:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1zpfj42pu.fsf@flinx.npwt.net \
    --to=ebiederm+eric@npwt.net \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox