1821218 Members
3138 Online
109632 Solutions
New Discussion юеВ

Re: TOP output

 
SOLVED
Go to solution
YOGI_3
Frequent Advisor

TOP output

hello all,
following is a part of top o/p. i am need of description of the following fields.
my system is having 12gb phy mem installed.
Memory: 3331596K (2131828K) real, 4408428K (2704892K) virtual, 285824K free Pag
e# 1/50.

Thanks.
yogesh
There is never a wrong time to do the right things
6 REPLIES 6
Naveej.K.A
Honored Contributor
Solution

Re: TOP output

Yogesh,

Attached is a good document which will help you identify the relations between physical memory, real memory, virtual memory and free pages. It also describes about the differences between the output of various commands.

This is also available at

ftp://eh:spear9@hprc.external.hp.com/memory.htm

Regards,
Naveej
practice makes a man perfect!!!
Suraj Singh_1
Trusted Contributor

Re: TOP output

To find out the actual amount of physical memory sensed by OS, use this command:

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

Regards
What we cannot speak about we must pass over in silence.
Himanshu_3
Valued Contributor

Re: TOP output

Hi Yogesh,

You can check the details from below as well

SAM -> Performance Monitors -> System Properties

According to SAM

Physical Memory:
Amount of physical memory (RAM) installed in the machine.

Real Memory:
Amount of real memory in the machine that is available to user processes and the virtual paging system (not held by the kernel: Active: Real memory currently being used. Total: Total real memory in the system.

To get more infor about physical memory and real memory , you can check

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5965-4641/5965-4641_top.html&con=/hpux/onlinedocs/5965-4641/00/00/1-con.html&toc=/hpux/onlinedocs/5965-4641/00/00/1-toc.html&searchterms=management%7cmemory&queryid=20041201-024903

and about real memory :

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B8844-90006/B8844-90006_top.html&con=/hpux/onlinedocs/B8844-90006/00/01/143-con.html&toc=/hpux/onlinedocs/B8844-90006/00/01/143-toc.html&searchterms=management%7cmemory&queryid=20041201-024903

Cheers,
Himanshu

Geoff Wild
Honored Contributor

Re: TOP output

I use a couple of scripts for memory - one is a shell script called hpmem:

#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval


The other is a C program (attached) called memdetail (just compile it with built in HPUX cc):

# memdetail
Memory Stat total used avail %used
physical 10080.0 10030.0 50.0 100%
active virtual 13110.0 6226.4 6883.6 47%
active real 7825.5 3683.1 4142.4 47%
memory swap 7693.0 1552.7 6140.2 20%
device swap 26528.0 12287.0 14241.0 46%


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ganesha Sridhara
Honored Contributor

Re: TOP output

Hello Yogesh,

Check this link:

http://docs.hp.com/en/5965-4641/ch01.html

Regards
Ganesha Sridhara
Amit Agarwal_1
Trusted Contributor

Re: TOP output

Hi Yogi,

top will never show you the amount of physical memory avlbl on system. You will have to use other mechanism as described in other mails. However here is the description of top output.

Memory:
3331596K - Physcial memory in use
(2131828K) real - Active Physical memory i.e. accessed in last interval (of few seconds/cycles??? I am not sure)

4408428K - Virtual mem in use
(2704892K)- Active virtual mem

285824K free - phy mem avlbl

-Amit