err, that is the whole point.
SwapTotal - SwapFree reflects the high water mark problem.
for example, if we are swapping, and process P1 has 20GB of swap,
then SwapTotal - SwapFree = 20GB. if i start a new process P2 which uses
3GB swap, then SwapTotal - SwapFree = 23GB. Great!
process P1 now exits. so only 3GB of swap are actually being used,
and yet SwapTotal - SwapFree = 23GB (still!).
if process P2 now exits, then SwapTotal-SwapFree goes back to 0.
what i would call the real problem is that
SwapTotal != SwapFree + (swap actually being used)
andrew
On Aug 27, 2012, at 7:32 AM, Dan Ritter wrote:
> On Mon, Aug 27, 2012 at 06:49:28AM -0700, Andrew Hume wrote:
>> i have some colleagues who are being frustrated by the stupid way
>> Linux measures swap space consumption (the high water mark
>> of currently running processes).
>>
>> does anyone know of a way to measure how much swap space is actually being
>> used?
>
> In /proc/meminfo, SwapTotal - SwapFree isn't appropriate for you?
>
> -dsr-
------------------
Andrew Hume (best -> Telework) +1 623-551-2845
[email protected] (Work) +1 973-236-2014
AT&T Labs - Research; member of USENIX and LOPSA
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/