1833582 Members
3784 Online
110061 Solutions
New Discussion

Re: Memory Utilization?

 
SOLVED
Go to solution
unixguy_1
Regular Advisor

Memory Utilization?


Hi Friends,

How to find the memeory utilization in HP-UX.

Pls anyone help tome? it's very urgent....

Regards,
Unixguy.
13 REPLIES 13
Wim Rombauts
Honored Contributor

Re: Memory Utilization?

I think "swapinfo -tm" may be a good start, or glance. It all depends on how much detail you want.
Johnson Punniyalingam
Honored Contributor
Solution

Re: Memory Utilization?

Glance

# glance

then press m for memory usgae to check

B3692A GlancePlus C.03.71.00 15:38:06 hudt02 9000/800 Current Avg High
--------------------------------------------------------------------------------
CPU Util SAU | 3% 3% 3%
Disk Util FVV | 5% 5% 5%
Mem Util S SU UB B | 92% 92% 92%
Swap Util U UR R | 50% 50% 50%
--------------------------------------------------------------------------------
MEMORY REPORT Users= 2
Event Current Cumulative Current Rate Cum Rate High Rate
--------------------------------------------------------------------------------
Page Faults 101 101 72.1 72.1 72.1
Page In 8 8 5.7 5.7 5.7
Page Out 0 0 0.0 0.0 0.0
KB Paged In 124kb 124kb 88.5 88.5 88.5
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 9 9 6.4 6.4 6.4
VM Writes 0 0 6.4 0.0 0.0

Total VM : 1.62gb Sys Mem : 363.5mb User Mem: 783.9mb Phys Mem: 1.50gb
Active VM: 1.30gb Buf Cache: 262.1mb Free Mem: 126.5mb Page 1 of 1
Problems are common to all, but attitude makes the difference
Sagar Sirdesai
Trusted Contributor

Re: Memory Utilization?

Hi
If you have glance installed . Please use the glance command.

Or Else use the below command

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

Where vsz is the vitual memory and sz is the actual memory used by a process

Sagar

Dennis Handly
Acclaimed Contributor

Re: Memory Utilization?

>How to find the memory utilization in HP-UX.

What are you trying to find out?

>Sagar: #export UNIX95=1
#ps -efo vsz,sz,pid,args

It is very dangerous to export UNIX95, instead you should do:
UNIX95=EXTENDED_PS ps -efo vsz,sz,pid,args | sort -rn -k1
Jeeshan
Honored Contributor

Re: Memory Utilization?

download kmeminfo and run. this will show you the memory utilization.
a warrior never quits
unixguy_1
Regular Advisor

Re: Memory Utilization?


Thanks friends for ur kindreplay.

But i am not able to use the Glance Command in our server.

I thing that tools is not installed in Server.

Am i right?

and i want to know the exact Physical Memory?

is there any command except the glance Command.

Thanks Johnson ur output is giving the exact details.

Iam Waiting for your reply.

Regards,
Unixguy.

Sagar Sirdesai
Trusted Contributor

Re: Memory Utilization?

Hi
You use many commands to find the Memory size

1)echo phys_mem_pages/D |adb /stand/vmunix /dev/kmem

You Can cstm command


2) echo "selclass qualifier memory;sleep;info;infolog" | cstm


3) dmesg | grep Phys

Sagar
Wim Rombauts
Honored Contributor

Re: Memory Utilization?

Installed memory is not memory utilaztion.

cd /var/adm/syslog
grep Physical syslog.log

That will show available memory at startup.
Johnson Punniyalingam
Honored Contributor

Re: Memory Utilization?

Memory Usage from "physmem", "swapinfo", "top", and "glance".
How do I undertand/resolve the different result about the memory usuage from "physmem", "swapinfo", "top", and "glance".


Physical Memory
Can use dmesg to report Physical memory (RAM) info. For example:

# dmesg | grep Phys
Physical: 212992 Kbytes, lockable: 152792 Kbytes, available: 178188 Kbytes


Note:
This system has 2GB physical memory.
Lockable memory is used for
Process images and overhead locked using the plock() system call (see HP-UX Reference entry plock(2)).
Shared memory segments locked with the SHM_LOC command of the shmctl() system call (see HP-UX Reference entry shmctl(2)).
Miscellaneous dynamic kernel data structures used by the shared memory system and some drivers



Can also report Physical memory (RAM) size with adb:



11.x # echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
physmem:
physmem: 524288
10.x # echo physmem/D |adb -k /stand/vmunix /dev/kmem
physmem:
physmem: 524288



[ TOP ]





--------------------------------------------------------------------------------


SWAP




# swapinfo -tam

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 288 59 229 20% 0 - 1 /dev/vg00/lvol2
reserve - 146 -146
memory 102 45 57 44%
total 390 250 140 64% - 0 -


The "memory" line in the output of swapinfo is NOT physical memory, rather it is pseudoswap which is calculated to be 75% the size of RAM.
MORE...


[ TOP ]


--------------------------------------------------------------------------------

top
System: opie1 Sat Dec 18 22:10:07 2004
Load averages: 3.39, 4.42, 4.54
193 processes: 155 sleeping, 38 running
Cpu states:
LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
3.39 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%

Memory: 515216K (441660K) real, 1537516K (1434024K) virtual, 1365132K free

^ ^ ^ ^ ^

| | | | |

1 2 3 4 5
Memory is not all of physcial, memory, it is:
Total physical memory in the system DEDICATED to text, data or stack segments for all processes on the system.
Total physical memory for runnable processes, as opposed to sleeping processes.
Total memory dedicated to text, data or stack segments for all processes on the system. Some of this is paged out to disk (that is, not all of this is in current physical memory.)
Total memory for runnable processes, as opposed to sleeping or stopped processes.
Physical memory the system considers to be unused and available to new processes. When this value is low, swapping is likely to occur.
For more about top, see top(1) man page. For example:


TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
? 2034 root 154 20 3936K 1084K sleep 1066:16 14.88 14.85 X
? 18768 root 154 30 312K 724K sleep 10:29 6.98 6.97 dtscreen
? 1818 root 152 20 3080K 1460K run 18:29 1.13 1.13 ns-admin


top(1) top(1)
CPU Processor number on which the process is
executing (only on multi-processor
systems).

TTY Terminal interface used by the process.

PID Process ID number.

USERNAME Name of the owner of the process. When the
-u option is specified, the user ID (uid)
is displayed instead of USERNAME.

PRI Current priority of the process.

NI Nice value ranging from -20 to +20.

SIZE Total size of the process in kilobytes.
This includes text, data, and stack.

RES Resident size of the process in kilobytes.
The resident size information is, at best,
an approximate value.

STATE Current state of the process. The various
states are sleep, wait, run, idl, zomb, or
stop.

TIME Number of system and CPU seconds the
process has consumed.

%WCPU Weighted CPU (central processing unit)
percentage.

%CPU Raw CPU percentage. This field is used to
sort the top processes.

COMMAND Name of the command the process is
currently running.
Problems are common to all, but attitude makes the difference
Jeeshan
Honored Contributor

Re: Memory Utilization?

or this command will show the description of your system

#print_manifest|more
a warrior never quits
yulianto piyut
Valued Contributor

Re: Memory Utilization?

use glance (license software) to monitor memory usage, swapinfo -tam to see swap utilization or kmeminfo script to check memory usage.
unixguy_1
Regular Advisor

Re: Memory Utilization?


Thanks Mr.Johnson,dennis,sagar,ahsan,wilm,Yulinato

for giving the wounderful support.

it's resolved.

Regards,
Unixguy.