1834232 Members
2347 Online
110066 Solutions
New Discussion

Re: swapinfo question

 
SOLVED
Go to solution
John_1017
Advisor

swapinfo question

Hello


Can someone tell if the swap space is enough here? It shows dev, reserve, memory. Can you tell what shows the swapspace

# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
reserve - 385920 -385920
memory 1544168 487600 1056568 32
8 REPLIES 8
Peter Godron
Honored Contributor
Solution

Re: swapinfo question

Kiran,
look fine to me.
Your disk swap is 0% used and memory is 32% used.
Are you having a problem?
Regards
John_1017
Advisor

Re: swapinfo question

Hello, Thanks. I got a free memory alert from somebody .. which is very unclear. It just says FreeMem/Pages .. that's it. I was wondering why .. Any idea if I have to check anything else like pages used by a program etc ...
Peter Godron
Honored Contributor

Re: swapinfo question

Kiran,
without detailed messages could it be that it is an application message? Your system may be set up to limit the amount of memory per user/process.
If you can't find any other messages you may want to try a
string | grep
to check if it comes from the application.
Regards
John_1017
Advisor

Re: swapinfo question

Hi,

How about this?

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1024 29 995 3% 0 - 1 /dev/vg00/lvol2
reserve - 955 -955
memory 1508 755 753 50%
total 2532 1739 793 69% - 0

Is it bad to have dev used 3%? sam shows it differently. It says swapinfo used= 964 mb avail=1024 mb. Any ideas?
B. Hulst
Trusted Contributor

Re: swapinfo question

Hi,

Install Glance (trial or buy version).

You see in one 'glance' the swap information
and system's performance.

A very good tool, downloadable from www.hp.com

Regards,
Bob
Kevin Wright
Honored Contributor

Re: swapinfo question

both outputs look just fine. Doesn't look like much if any paging is happening, run a vmstat to check.

Pseudo swap is enabled, that's the memory line in swapinfo.
Con O'Kelly
Honored Contributor

Re: swapinfo question

Hi

You may want to check your memory utilization.
As the others have said glance is an excellent product for this.
Otherwise from command line use:
# vmstat 1 2 | tail -1 | awk '{ print $5*4/1024}'

This will give you free memory in MB.

Cheers
Con
John_1017
Advisor

Re: swapinfo question

Hello all,

Thanks for the help. glance shows the following details:

Total VM : 70.1mb Sys Mem : 146.4mb User Mem: 1.47gb Phys Mem: 2.00gb
Active VM: 35.5mb Buf Cache: 307.2mb Free Mem: 86.0mb

Mem Util: 96%
Swap Util 69%

--------

# vmstat 1 2 | tail -1 | awk '{ print $5*4/1024}'
105.344


-----

However, sam shows swapspace used=avail=1024mb

Its not clear why sam shows it completely different from what glance or swapinfo -tam shows.

Does it mean more memory should be added to the system?