Re: Swap Usage with Kernel 2.4.14

safemode (safemode@speakeasy.net)
Sat, 17 Nov 2001 10:05:02 -0500


On Saturday 17 November 2001 06:18, Alvaro Lopes wrote:
> On Sáb, 2001-11-17 at 00:42, war wrote:
> > Regular usage on my box, launching netscape, opera, pan, xchat, gaim;
> > the kernel eventually digs into swap.
> >
> > However, the swap is never released?
> >
> > Mem: 900596K av, 185896K used, 714700K free, 0K shrd, 4172K
> > buff
> > Swap: 2048276K av, 63728K used, 1984548K free 91176K
> > cached
> >
> > Are there any settings I should have set or be aware of?
> >
> > I current use 4GB support, 1GB of ram, 2GB of swap.
> >
> > Having 1GB, I thought I had enough memory for basic operations without
> > the disk swapping like mad.
>
> AFAIK with 2.4.14 processes can be in memory and swap at the same time.
>

look at swap cached in /proc/meminfo that will tell you what is
mirrored.
Also, your box may not be actually doing much swapping if any at all. vmstat
will tell if you're actually doing any swapping at a given time.
Allocation may carry over to swap, but it doesn't effect performance in any
way in doing so. That's why looking at anything but vmstat really wont tell
you much about what's actually being used in swap.
-
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/