2001-10-20 01:59:00

by Ed Sweetman

[permalink] [raw]
Subject: swap with samba question using 2.4.12-ac3

Ok, this is strange. I'm stating about 3000 mp3s and they are on my linux
box on a samba share. Now this is on a 100mbit network so it's going at
4+MB/s. I started compiling avifile and i noticed that my swap usage was at
105MB. Not sure how it got that way as most of my ram (660MB) is being used
as cache. I'm not seeing any io so i'm guessing it's just mapped, not
actually being used.

My real question is: is it possible to just give the value of swap actually
being used as the swap use number? We have a breakdown of ram usage, but i
dont know of any breakdown of swap usage ( actual use vs. mapped). It's just
a bit decieving when you glance at it and you see ram free 2MB swap use 105MB
but then you realize that 87% of your ram is still being used as cache so you
can't possibly be actually using 105MB of swap. Heh. smooth sailing though.


2001-10-20 20:17:49

by Mike Fedyk

[permalink] [raw]
Subject: Re: swap with samba question using 2.4.12-ac3

On Fri, Oct 19, 2001 at 09:58:59PM -0400, safemode wrote:
> Ok, this is strange. I'm stating about 3000 mp3s and they are on my linux
> box on a samba share. Now this is on a 100mbit network so it's going at
> 4+MB/s. I started compiling avifile and i noticed that my swap usage was at
> 105MB. Not sure how it got that way as most of my ram (660MB) is being used
> as cache. I'm not seeing any io so i'm guessing it's just mapped, not
> actually being used.
>
> My real question is: is it possible to just give the value of swap actually
> being used as the swap use number? We have a breakdown of ram usage, but i
> dont know of any breakdown of swap usage ( actual use vs. mapped). It's just
> a bit decieving when you glance at it and you see ram free 2MB swap use 105MB
> but then you realize that 87% of your ram is still being used as cache so you
> can't possibly be actually using 105MB of swap. Heh. smooth sailing though.

I think should be (SwapTotal - SwapFree - SwapCached) to get the ammount of
actually used swap.

Someone please let us know if I'm wrong.