Operating System - HP-UX
1826645 Members
3420 Online
109695 Solutions
New Discussion

what are "top" output of "memory " sesction mean?

 
xiongye_2
Occasional Advisor

what are "top" output of "memory " sesction mean?

My machine is n4000 memory is 4G
the memory section of top is
Memory: 745348K (390028K) real, 2722692K (1373776K) virtual, 647880K free Page#
1/14
Can you explain it to me?
and
the fre in vmstat mean k of pagesize ?

Thanks !!!
xysco
3 REPLIES 3
kish_1
Valued Contributor

Re: what are "top" output of "memory " sesction mean?

Here is an example memory line from top output:
these is the infroamtion i got from HP

| Memory: 2080K (1672K) real, 5564K (3044K) virtual, 696K free
| ^ ^ ^ ^ ^
| | | | | |
| 1 2 3 4 5

The entries are described below:

1. Total physical memory in the system dedicated to text, data or
stack segments for all processes on the system.

2. Total physical memory for runnable processes, as opposed to
sleeping processes.

3. 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.

4. Total memory for runnable processes, as opposed to sleeping or stopped
processes.

5. Physical memory the system considers to be unused and available to new
processes. When this value is low, swapping is likely to occur.

Basically top is not reporting anything about what you have available,
but rather what is being used.

To see how memory is utilized, glance can be used.
share the power of the knowledge
Michael Tully
Honored Contributor

Re: what are "top" output of "memory " sesction mean?

steven Burgess_2
Honored Contributor

Re: what are "top" output of "memory " sesction mean?

Hi

If you don't have glance - to see total , used and free memory

Pop the below in a file, set it executable and run it

#!/usr/bin/sh

let x=$(grep -i
physical: /var/adm/syslog/syslog.log | head -1 | awk '{print $7}
')/1048
let z=$(vmstat|tail -1|awk '{print $5}')*4096;let z=$z/1000000
let free=100000/$x*$z
let free=$free/1000
let free=100-$free
echo "$x Mb physical memory \n$z Mb memory free \n$free % used"

HTH

Steve
take your time and think things through