Operating System - HP-UX
1825766 Members
2098 Online
109687 Solutions
New Discussion

How to find the virtual memory

 
SOLVED
Go to solution
praveen..
Super Advisor

How to find the virtual memory

hi,
how can i find the virtual memory, swap space in my server ?

please suggest
thanks
praveen
11 REPLIES 11
Arunvijai_4
Honored Contributor
Solution

Re: How to find the virtual memory

Hi Praveen,

Use the following commands,

# swapinfo or swapinfo -a

# /opt/ignite/bin/print_manifest

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: How to find the virtual memory

Shalom,

swapinfo -tam

Post the output if you desire interpretation.

You can measure its use with the vmstat command or one of the sar commands.

See http://www.hpux.ws/system.perf.sh for a good guide on which sar command.

1 post, three suggestions.

Forth suggestion: System and Network Administration 1 & 2. http://education.hp.com

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
praveen..
Super Advisor

Re: How to find the virtual memory

# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
dev 20971520 0 20971520 0% 0 - 1 /dev/vg00/swap2
reserve - 21350952 -21350952
memory 33520872 21785356 11735516 65%


so now how much virtual memory i have?
is it 33.52GB
Ramaprasad N
Honored Contributor

Re: How to find the virtual memory

You can also use 'sam', to find out the virtual memory statistics on your HP-UX system.
Devender Khatana
Honored Contributor

Re: How to find the virtual memory

Hi,

The virtual memory here is 24576MB. But the good part is that nothing is in use. If this is the scenario when system is running normally, this will be the ideal situation.

HTH,
Devender
Impossible itself mentions "I m possible"
Sanjay Yugal Kishore Ha
Frequent Advisor

Re: How to find the virtual memory

Hi,

Quite a bit of tools are available:
1. vmstat - vmstat(1)
2. sam -> Performance Monitors
3. use the nickel script - http://www.grc.hp.com/docs/nickel/

HTH.

-Sanjay
Dying is the last thing that I will do.
Nguyen Anh Tien
Honored Contributor

Re: How to find the virtual memory

swapinfo can help you to find these parameter
swapinfo prints information about device and file system paging space.
(Note: the term `swap' refers to an obsolete implementation of
virtual memory; HP-UX actually implements virtual memory by way of
paging rather than swapping. This command and others retain names
derived from `swap' for historical reasons.)
# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 1888 1046688 0% 0 - 1 /dev/vg00/lvol2
reserve - 70428 -70428
memory 362812 320564 42248 88%
HP is simple
Arunvijai_4
Honored Contributor

Re: How to find the virtual memory

Hi Praveen,

Your Virtual Memory is 24.5 GB and nothing is occupied yet, You can also use "sam" to get to know the system properties.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: How to find the virtual memory

You can use this,

# sam -> performance monitor -> system properties -> Memory Tab

# vmstat -> Memory Fields

# top

--
Muthu
Easy to suggest when don't know about the problem!
Steven E. Protter
Exalted Contributor

Re: How to find the virtual memory

I personally find my monitor scripts more useful than sam.

Note that running any performance measurement distorts the performance of the system. The sar scripts are good because they cause the least distortion.

They were first used by me at hp's recommendation to track down oracle performance problems on a D320.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Cem Tugrul
Esteemed Contributor

Re: How to find the virtual memory

*sam -> performance monitor -> system properties -> Memory Tab

*top

*vmstat

*print_manifset|grep -i swap

*dmesg


would be solution...

Good Luck,

Our greatest duty in this life is to help others. And please, if you can't