Operating System - HP-UX
1752291 Members
5199 Online
108786 Solutions
New Discussion юеВ

How to see total memory usage..

 
Arun Jain
Frequent Advisor

How to see total memory usage..

Dear All,

I have 8 Gb main memory and 9 GB (4+5) memory in swap, 17 Gb in total. Now the problem is when I run "swapinfo -tam", it shows only memory usage by swap space but it doesn't include main memory.
while in other servers it shows main memory also.
now tell what is the reason and how can I check total memory usage in that server.

Regards,
Arun Jain
speak less say more
19 REPLIES 19
skt_skt
Honored Contributor

Re: How to see total memory usage..

which HP-UX version
Arun Jain
Frequent Advisor

Re: How to see total memory usage..

HP-UX B.11.00

but other servers contain either B.11.11 or B.11.23
speak less say more
Yogeeraj_1
Honored Contributor

Re: How to see total memory usage..

hi Arun,

try:
glance -m

e.g.

--------------------------------------------------------------------------------
CPU Util S | 1% 2% 4%
Disk Util F | 2% 1% 2%
Mem Util S SU UB B | 19% 19% 19%
Swap Util URR | 5% 5% 5%
--------------------------------------------------------------------------------
MEMORY REPORT Users= 2
Event Current Cumulative Current Rate Cum Rate High Rate
--------------------------------------------------------------------------------
Page Faults 111 169 24.6 28.6 41.4
Page In 28 52 6.2 8.8 17.1
Page Out 0 0 0.0 0.0 0.0
KB Paged In 0kb 0kb 0.0 0.0 0.0
KB Paged Out 0kb 0kb 0.0 0.0 0.0
Reactivations 0 0 0.0 0.0 0.0
Deactivations 0 0 0.0 0.0 0.0
KB Deactivated 0kb 0kb 0.0 0.0 0.0
VM Reads 0 0 0.0 0.0 0.0
VM Writes 0 0 0.0 0.0 0.0

Total VM : 1.20gb Sys Mem : 728.8mb User Mem: 451.6mb Phys Mem: 8.00gb
Active VM: 1.03gb Buf Cache: 409.6mb Free Mem: 6.45gb Page 1 of 1


hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Arun Jain
Frequent Advisor

Re: How to see total memory usage..

Hi yogeeraj,

thanks for the help but glance version is expired in the system.

is there any other method, then plz suggest.

Regards:
Arun
speak less say more
Yogeeraj_1
Honored Contributor

Re: How to see total memory usage..

hi again,

try sam

SAM Areas:Performance Monitors -> System Properties

and go to the Memory tab to get the details as in below:


e.g.

Physical Memory: 8199.3 MB
Real Memory:
Active: 178900.2 KB
Total: 436055.3 KB
Virtual Memory:
Active: 933137.9 KB
Total: 1272954.1 KB
Free Memory Pages: 1689926 at 4 KB/page
Swap Space:
Avail: 10240 MB
Used: 477 MB



hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Don Morris_1
Honored Contributor

Re: How to see total memory usage..

If you're saying that swapinfo only shows device, Filesystem, reserve and total lines it sounds like this server doesn't have swapmem_on set.
Arun Jain
Frequent Advisor

Re: How to see total memory usage..

Hi Don Morris,

yes, you are right, "swapmem_on" parameter is not set. But for that I have to restart the server which I can't do.

Regards:
Arun
speak less say more
Arun Jain
Frequent Advisor

Re: How to see total memory usage..

Hi yogeeraj,

this one also cant solve the problem as it gives absolute data, but I want the same data in percentage.

Regards:
Arun
speak less say more
Yogeeraj_1
Honored Contributor

Re: How to see total memory usage..

hi again,

have a look at the following URL:
ftp://hprc.external.hp.com/memory.htm#kmeminfo


kmeminfo utility displays the information in the format below:

# ./kmeminfo
tool: kmeminfo 7.02
unix: /stand/vmunix 11.11 64bit PA2.0 on "my.box.com"
core: /dev/kmem live
link: Wed Feb 1 07:45:48 PST 2006
boot: Sat Apr 28 17:36:56 2007
time: Thu May 3 08:37:33 2007
nbpg: 4096 bytes


----------------------------------------------------------------------
Physical memory usage summary (in page/byte/percent):

Physical memory = 5242880 20.0g 100%
Free memory = 537474 2.1g 10%
User processes = 4008776 15.3g 76% details with -user
System = 683688 2.6g 13%
Kernel = 421544 1.6g 8% kernel text and data
Dynamic Arenas = 96880 378.4m 2% details with -arena
M_TEMP = 43860 171.3m 1%
VFD_BT_NODE = 15210 59.4m 0%
M_SPINLOCK = 7245 28.3m 0%
KMEM_ALLOC = 5432 21.2m 0%
ALLOCB_MBLK_LM = 2813 11.0m 0%
Other arenas = 22320 87.2m 0% details with -arena
Super page pool = 7021 27.4m 0% details with -kas
Static Tables = 263990 1.0g 5% details with -static
pfdat = 119481 466.7m 2%
htbl2_0 = 65536 256.0m 1%
nbuf = 21024 82.1m 0% bufcache headers
bufhash = 20480 80.0m 0% bufcache hash headers
pfn_to_virt = 19913 77.8m 0%
Other tables = 17555 68.6m 0% details with -static
Buffer cache = 262144 1.0g 5% details with -bufcache
UFC file mrg = 0 0.0b 0%
UFC meta mrg = 0 0.0b 0%
#


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)