Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stephen C. Tweedie <sct@dcs.ed.ac.uk>
Subject: Re: swap problem: not freeing pages ?!
Date: Sun, 16 Jun 1996 15:28:26 +0100	[thread overview]
Message-ID: <8039e0597d8d3b67f5910dda80b4f9d7.axp-list@archive.invalid> (raw)
In-Reply-To: <199606151616.SAA19955@ceres.tat.physik.uni-tuebingen.de>

Hi,

On Sat, 15 Jun 1996 18:11:42 +0200 (MET DST),
koenig@tat.physik.uni-tuebingen.de (Harald Koenig) said:

> running Linux-2.0.0 on ALPHA I found a problem with swapping which
> also shows up (but not that severe?) for i386 (also 2.0.0):

> trying to allocate as much memory (real ram) as possible and using
> it by writing to every page over and over again I found that a lot
> of memory doesn't get swapped out ...

> I'm not able to get more than 25MB memory without running into 
> continous swapping.  summing up all the "RSS" fields in "ps axm" output
> I only get 26MB.

Summing the RSS doesn't work.  RSS includes shared pages, so that (for
example) if you have two instances of bash then a large amount of the
RSS can be accounted for by that.  If you eliminate a single large
process from memory then you will expect the summed RSS to rise, since
the memory hog will have an unusually low percentage of shared pages.

I've just tried on the 24MB multia here, and I can get a 19MB eatmem
running without any swapping at all.  At 20MB, I get swapping, but all
the diagnostics look fine.

Suspending the eatmem with ^Z gives me `free`:

[linux@quark] ~ $ free
             total       used       free     shared    buffers     cached
Mem:         22336      21928        408       1456         88       1384
-/+ buffers:            20456       1880
Swap:        19128      14272       4856

The summed RSS comes to 20056MB.  Adding "cached" and "buffers", and
accounting for multiply-counted pages by subtracting "shared", that
accounts for 20072MB.  This leaves a discrepancy of only 1856K between
the memory visibly accounted for, and the total used memory.  That
1856K includes all kernel kmallocs, kernel stacks, networking memory,
swap-space memory maps, driver buffers and so on.

Time to recompile with the debugging-kmalloc enabled to see if we can
pin down the remaining memory, perhaps; 1856K for dynamic kernel data
is still a bit high.

Cheers,
 Stephen.

--
Stephen Tweedie <sct@dcs.ed.ac.uk>
Department of Computer Science, Edinburgh University, Scotland.

       reply	other threads:[~1996-06-16 14:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199606151616.SAA19955@ceres.tat.physik.uni-tuebingen.de>
1996-06-16 14:28 ` Stephen C. Tweedie [this message]
     [not found] <199606161428.PAA00621@dax.dcs.ed.ac.uk>
1996-06-17 19:57 ` swap problem: not freeing pages ?! Harald Koenig
1996-06-15 16:11 Harald Koenig
read-only archive

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