public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Peter Wächtler" <pwaechtler@loewe-komp.de>
To: linux-kernel@vger.kernel.org
Cc: BERECZ Szabolcs <szabi@inf.elte.hu>
Subject: Re: kswapd eats the cpu without swap
Date: Thu, 02 Aug 2001 11:38:15 +0200	[thread overview]
Message-ID: <3B691F87.2182A1BA@loewe-komp.de> (raw)
In-Reply-To: <Pine.A41.4.31.0108020049360.61934-100000@pandora.inf.elte.hu>

BERECZ Szabolcs wrote:
> 
> some notes again.
> when kswapd was working, there was no hdd activity at all.
> every interrup was handled after kswapd finished the 'work'.
> after a reboot everything looks ok with the same modules, and
> approximately the same load.
> 
> oh, I almost forgot, the swapfile is on a reiserfs partition.
> 
In a former message you wrote:
"I have 160M of ram, and I don't use swap at all,"

Then you meant: no single page was swapped out?

I thought you was observing the same as me:

when the system runs low on memory (on a 64MB setop box like device
with _no_ swap partition/file), the harddisk gets very active and
the system does not respond for 1-5 seconds.
The VM (in mm/oom_kill.c) is killing the "memory hog" (simple program 
that calls malloc() in a loop and touching the mem). I think the
amount of "busyness" depends on the size of malloc chunks. If they
are bigger the process gets killed faster.

Until now, I don't understand what is happening. Several subsystems
in the kernel compete for memory: dentry cache, buffer cache, VM
that wants at least /proc/sys/vm/freepages free.
Is demand loading involved? Does the VM quashes text pages when
running low on memory? What about relocation then?

Or simpler: what keeps the harddisk so busy?
It is on 2.4.2 with a single ext2 "/" mounted with noatime,sync
but the question is meant more general.

Anybody?

  reply	other threads:[~2001-08-02  9:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-01 22:08 kswapd eats the cpu without swap BERECZ Szabolcs
2001-08-01 22:23 ` BERECZ Szabolcs
2001-08-01 22:58   ` BERECZ Szabolcs
2001-08-02  9:38     ` Peter Wächtler [this message]
2001-08-02 10:49       ` Helge Hafting
2001-08-03 22:21 ` Marcelo Tosatti
2001-08-06 22:48   ` BERECZ Szabolcs
2001-08-06 23:21     ` Daniel Phillips
2001-08-06 22:47       ` Marcelo Tosatti
  -- strict thread matches above, loose matches on Subject: below --
2001-08-02 20:47 BERECZ Szabolcs

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=3B691F87.2182A1BA@loewe-komp.de \
    --to=pwaechtler@loewe-komp.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=szabi@inf.elte.hu \
    /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