Operating System - HP-UX
1748223 Members
4817 Online
108759 Solutions
New Discussion

Re: how to check the real memory usage in HP-UX 11.31

 
rajesh73
Super Advisor

how to check the real memory usage in hp-ux 11.31

swapinfo -tam command outpout

 

 /dev/vg00/swapdev  

*************************

Total memory - 65GB , used -30GB , Free -35 GB

 

Physical memory 

*****************

Total memory - 24GB , used -3GB , Free -20 GB

 

 

 

but in top command we found below memory output

 

System Page Size: 4Kbytes
Memory: 19282568K (1929912K) real, 57718252K (5759048K) virtual, 845192K free Page# 1/104

 

 

swapinfo output says free physical memory is 20Gb, but in top command output says 845192k free...

how to conclude whcih one is correct information

 

please find the vmstat output value

****************************************

pi               po

1048        1002

 

----> i dont know how to check the memory outage in server.

 

 

 

 

 

 

 

6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: how to check the real memory usage in HP-UX 11.31

>swapinfo -tam command outpout

 

Please provide the whole output.

But if you want accurate usage, you should use glance or a program using pstat(2).

Bill Hassell
Honored Contributor

Re: how to check the real memory usage in hp-ux 11.31

top's memory line has been broken for many years.

Memory usage is much more than process space. There are shared memory segments (ipcs -bmop), the kernel's buffer cache (filecache), etc. If you don't have glance installed, swapinfo -tam will give you a general number to use.



Bill Hassell, sysadmin
rajesh73
Super Advisor

Re: how to check the real memory usage in hp-ux 11.31

swapinfo output

 

$ /usr/sbin/swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 65536 650 64886 1% 0 - 1 /dev/vg00/lvol2
reserve - 1028 -1028
memory 23432 3305 20127 14%
total 88968 4983 83985 6% - 0 -
$

Dennis Handly
Acclaimed Contributor

Re: how to check the real memory usage in HP-UX 11.31

>dev 65536 650 64886 1% 0 - 1 /dev/vg00/lvol2

 

You have way too much device swap.  If you have to use it, you're going to be very slow.

 

>memory 23432 3305 20127 14%

 

You're not under any memory pressure now.

rajesh73
Super Advisor

Re: how to check the real memory usage in HP-UX 11.31

Hi,

 

please find the attached below server machinfo output. please confirm in the below logs how many cpu and core are availble.

 

Server -1
**********
$ machinfo
CPU info:
Intel(R) Itanium(R) Processor 9340 (1.6 GHz, 15 MB)
4 cores, 8 logical processors per socket
4.79 GT/s QPI, CPU version E0
Active processor count:
2 sockets
5 cores (2 to 3 per socket)
10 logical processors
LCPU attribute is enabled

Memory: 30761 MB (30.04 GB)

Firmware info:
Firmware revision: 004.044.000
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC firmware revision: 2.53

Platform info:
Model: "ia64 hp Superdome2 16s"
Machine ID number: 883b8ec7-df80-11df-9320-79fdc6c07cda
Machine serial number: **Confidential info erased**

OS info:
Nodename: RMCI01
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
ID Number: 2285604551
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf

 


$

Server -2
**********


$ machinfo
CPU info:
Intel(R) Itanium(R) Processor 9340 (1.6 GHz, 10 MB)
4 cores, 8 logical processors per socket
4.79 GT/s QPI, CPU version E0
Active processor count:
2 sockets
4 cores (2 per socket)
8 logical processors (4 per socket)
LCPU attribute is enabled

Memory: 32828 MB (32.06 GB)

Firmware info:
Firmware revision: 004.044.000
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC firmware revision: 2.53

Platform info:
Model: "ia64 hp Superdome2 16s"
Machine ID number: 883b8ec7-df80-11df-9320-79fdc6c07cda
Machine serial number: **Confidential info erased**

OS info:
Nodename: RMDB01
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
ID Number: 2285604551
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf
$

Dennis Handly
Acclaimed Contributor

Re: how to check the real memory usage in HP-UX 11.31

>Server-1

>5 cores (2 to 3 per socket)

 

You have 5 CPUs, ignoring hyperthreading.  Not sure how you have 2 to 3, unless you are in a VM?

 

>Server-2

>4 cores (2 per socket)

 

You have 4 CPUs, ignoring hyperthreading.

 

I'm not sure how much help hyperthreading will be.