Re: swap with samba question using 2.4.12-ac3

Mike Fedyk (mfedyk@matchmail.com)
Sat, 20 Oct 2001 13:17:52 -0700


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.
-
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/