1833497 Members
2525 Online
110052 Solutions
New Discussion

Swapinfo output

 
SOLVED
Go to solution
R.O.
Esteemed Contributor

Swapinfo output

Hi,

In this system (with 2 Gb of RAM) I can see:

Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048564 1048528 48 100% 0 - 1 /dev/vg00/lvol2
dev 7364600 4950912 2413696 67% 0 - 1 /dev/vg00/lvol9
reserve - 2413744 -2413744
memory 1586564 1581984 4580 100%
total 9999748 9995168 4580 100% - 0 -

The "reserve" line shows about 2 Gb of swap reserved (simillar to RAM), but the total amount of swap is about 8 Gb and the "total" of swap reserved is 100%.
What am I misunderstanding?

Regards,
"When you look into an abyss, the abyss also looks into you"
3 REPLIES 3
R.O.
Esteemed Contributor

Re: Swapinfo output

I mean, if the reserve is 2 Gb and the total of swap space is 8 Gb, why the total of swap reserved is 100%?

Regards,
"When you look into an abyss, the abyss also looks into you"
Ermin Borovac
Honored Contributor
Solution

Re: Swapinfo output

Your swapinfo output shows me that

* during last swapping period two device swap areas were 100% and 67% used
* reserve line shows additional 2413744 Kb that is set aside for memory that has been reserved and may need to be swapped (BUT has not been used yet)
* memory line shows how much pseudo-swap has been reserved (size of pseudo swap is 75% of total physical memory)
* dev (USED) + reserve (USED) + memory (USED) = total (USED) which explains 100% of the total line

Eric Antunes
Honored Contributor

Re: Swapinfo output

Hi,

2413744 Kb are reserved and may be needed by processes...

You are using almost 100% of 1586564 Kb available. This memory part is the amount that can be used to hold pages in the event that all of the reserved paging areas are used up

Best Regards,

Eric Antunes

Each and every day is a good day to learn.