Operating System - Tru64 Unix
1748239 Members
3822 Online
108759 Solutions
New Discussion юеВ

Re: Who can explain me about "swapon -s" two points?

 
jackunix
New Member

Who can explain me about "swapon -s" two points?

I issue "swapon -s" command,and then output like this:

Swap partition /dev/rz10b (default swap):
Allocated space: 103680 pages (810MB)
In-use space: 8079 pages ( 7%)
Free space: 95601 pages ( 92%)
Total swap allocation:
Allocated space: 103680 pages (810MB)
Reserved space: 73533 pages ( 70%)
In-use space: 8079 pages ( 7%)
Available space: 30147 pages ( 29%)

1├г Why the sum of all the percentage is over 100 percent?
2├г Which percentage can be describe system memory is low,and the value is
3 REPLIES 3
Ravi_8
Honored Contributor

Re: Who can explain me about "swapon -s" two points?

Hi
1. sum exceeded 100% only at that instant(when you issued the command),if you had issued the same command next instant, it may or may not be the same(usually it never exceed)

2.Available space
never give up
Michael Schulte zur Sur
Honored Contributor

Re: Who can explain me about "swapon -s" two points?

Hi,

I does not exeed 100%. From the 70% that are reserved, 7% are actually in use, so you would calculate 70%+29%~100%

greetings,

Michael
Ralf Puchner
Honored Contributor

Re: Who can explain me about "swapon -s" two points?

In-use space: 8079 pages ( 7%)
Free space: 95601 pages ( 92%)
=====
99%

Total swap allocation:
Reserved space: 73533 pages ( 70%)
Available space: 30147 pages ( 29%)
======
99%
In-use space: 8079 pages ( 7%)
was explained by michael

Have also a look inside the admin guide explaining some more basics....
Help() { FirstReadManual(urgently); Go_to_it;; }