lkml.org 
[lkml]   [2001]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Thrashing WITHOUT swap.
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:2.200 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site