public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Helge Hafting <helgehaf@idb.hist.no>
To: Maciej Zenczykowski <maze@druid.if.uj.edu.pl>,
	linux-kernel@vger.kernel.org
Subject: Re: Thrashing WITHOUT swap.
Date: Mon, 25 Jun 2001 11:21:57 +0200	[thread overview]
Message-ID: <3B3702B5.13554207@idb.hist.no> (raw)
In-Reply-To: <Pine.LNX.4.33.0106242133550.19801-100000@druid.if.uj.edu.pl>

Maciej Zenczykowski wrote:
> Now my question is how can it be
> thrashing with swap explicitly turned off? 

Easy.  Linux throws executables out from memory because they _can_
be fetched again from disk.  Yes - this definitely gives trashing
if you loose almost all your executables this way.

> [oh just to make stuff even
> funnier netscape is at nice -19 (i.e. lower priority)]

That makes no difference.  nice'ing netscape means it use
less _cpu when other things want cpu_, it can still over-spend memory!

> top gives me:
> mem: 62144k av, 61180k used, 956k free, 0k shrd, 76 buff, 2636 cached
> swap: 0k av, 0k used, 0k free [as expected]

File i/o becomes a pain with so few buffers and cache pages left, and
then your file i/o and the executable fetching competes for
the disk.  No wonder it got slow, and laptop disks aren't usually
that fast either...
 
> So my basic question is what can I do to fix this?
Looks like you were 3M away from running completely out of memory.
Turn on that swap partition you mentioned, your machine will degrade
much more gracefully.  It'll keep more cache around and be able
to get rid of unused data instead of just dropping executables.
Some of the code is used a lot after all.

If it still is too slow - add RAM or run fewer/smaller apps.
Opera is a low-memory alternative to netscape.  Avoiding
gnome/kde apps when plain X apps are available is also a good idea
when you're short on memory.  Using low resolution and low-color
modes might help a little if you do lot of graphics.  But then
you might not want that.

Helge Hafting

  parent reply	other threads:[~2001-06-25  9:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-24 19:47 Thrashing WITHOUT swap Maciej Zenczykowski
2001-06-24 20:07 ` Jonathan Morton
2001-06-24 21:36 ` Alan Cox
2001-06-25  8:13   ` Xavier Bestel
2001-06-25 16:14     ` Mike Galbraith
2001-06-25  9:21 ` Helge Hafting [this message]
2001-06-25 16:02   ` [OT] " Daniel Phillips
     [not found]   ` <9h7ne1$1bn$1@ns1.clouddancer.com>
2001-06-25 16:16     ` Colonel
2001-06-25 16:32       ` Daniel Phillips
2001-06-26 12:36         ` john slee
2001-06-27 12:52 ` Ookhoi

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=3B3702B5.13554207@idb.hist.no \
    --to=helgehaf@idb.hist.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maze@druid.if.uj.edu.pl \
    /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