Operating System - HP-UX
1827158 Members
2065 Online
109716 Solutions
New Discussion

How to get physical memory usage.

 
SOLVED
Go to solution
jeevarajkn
Frequent Advisor

How to get physical memory usage.

Dear Gurus

Is swapinfo will give physical usage or I want to go for TOP command as Glance is not installed in my server.

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 0 8192 0% 0 - 1 /dev/vg00/lvol2
dev 8192 0 8192 0% 0 - 1 /dev/vg00/lvswap
reserve - 5816 -5816
total 16384 5816 10568 35% - 0 -

Physical memory size is 8GB.
9 REPLIES 9
Johnson Punniyalingam
Honored Contributor

Re: How to get physical memory usage.

Hi Jeevarajkn,

Check below link its very usefull explain how to check ..:)

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1226991737788+28353475&threadId=601446

# vmstat

# sar

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Sagar Sirdesai
Trusted Contributor

Re: How to get physical memory usage.

Hi

Please check the ipcs .
Using this command you can find the shared memory usage

Sagar
SKR_1
Trusted Contributor

Re: How to get physical memory usage.

Use

dmesg | grep physical
top
glance
swapinfo -tam

Thanks

SKR
Suraj K Sankari
Honored Contributor
Solution

Re: How to get physical memory usage.

Hi,

The total memory can be seen with:
- glance, memory (m) report
- top
- dmesg
- also logged to the file, /var/adm/syslog/syslog.log
The free memory on the system can be seen with:
- glance, memory (m) report
- vmstat

The swap space being used can be seen with:
- glance, swap space (w) report
- swapinfo

Suraj
Sagar Sirdesai
Trusted Contributor

Re: How to get physical memory usage.

If you want to find which processes are using what memory

Then to find the actual size (sz) and Virtual size (vsz) use the below command

#UNIX95=1
# ps -efo vsz,sz,pid,args |grep -v grep | sort -rnk 1 | more

Sagar

Dennis Handly
Acclaimed Contributor

Re: How to get physical memory usage.

You don't have an entry for "memory". You need to enable the kernel parm swapmem_on.
Dennis Handly
Acclaimed Contributor

Re: How to get physical memory usage.

>Sagar: #UNIX95=1
# ps -efo vsz,sz,pid,args |grep -v grep | sort -rnk 1

These need to be on the same line:
$ UNIX95=EXTENDED_PS ps -efo vsz,sz,pid,args | sort -rnk 1
Steven E. Protter
Exalted Contributor

Re: How to get physical memory usage.

Shalom,

http://www.hpux.ws/?p=8

Memory leak detector might get you enough info to go with.

Shmuel
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
jeevarajkn
Frequent Advisor

Re: How to get physical memory usage.

Dear Gurus

Thanx for all the information Iam closing this thread.