Re: How to find the virtual memory (110 Views)
Reply
Super Advisor
praveen..
Posts: 461
Registered: ‎01-25-2006
Message 1 of 12 (110 Views)
Accepted Solution

How to find the virtual memory

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

please suggest
thanks
praveen
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 2 of 12 (110 Views)

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
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 12 (110 Views)

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
praveen..
Posts: 461
Registered: ‎01-25-2006
Message 4 of 12 (110 Views)

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
Ramaprasad N
Posts: 430
Registered: ‎09-13-2001
Message 5 of 12 (110 Views)

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
Devender Khatana
Posts: 2,278
Registered: ‎03-01-2004
Message 6 of 12 (110 Views)

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"
Frequent Advisor
Sanjay Yugal Kishore Ha
Posts: 70
Registered: ‎06-06-2002
Message 7 of 12 (110 Views)

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
Nguyen Anh Tien
Posts: 923
Registered: ‎05-20-2004
Message 8 of 12 (110 Views)

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
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 9 of 12 (110 Views)

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
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 10 of 12 (110 Views)

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
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 11 of 12 (110 Views)

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
Cem Tugrul
Posts: 964
Registered: ‎12-21-2003
Message 12 of 12 (110 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.