System Administration
Showing results for 
Search instead for 
Do you mean 

How to find the virtual memory

SOLVED
Go to Solution
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
1 ACCEPTED SOLUTIONS
Honored Contributor Honored Contributor

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"
11 REPLIES
Honored Contributor Honored Contributor

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"
Exalted Contributor 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
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
Honored Contributor 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.
Honored Contributor 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"
Highlighted
Frequent Advisor 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.
Honored Contributor 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
Honored Contributor 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"
Honored Contributor 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!
Exalted Contributor 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
Esteemed Contributor 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