Operating System - HP-UX
1837202 Members
3051 Online
110115 Solutions
New Discussion

Memory information from "top" command

 
abhilash_op
Advisor

Memory information from "top" command

Hi All,

Pls help me to clarify the following doubt.

I have a HP-UX Superdome(SD64000) server running with 11.11 OS.Memory info from top command shows the following.

Memory: 12298384K (12222896K) real, 15729316K (15596660K) virtual, 977904K free

I would like to know that the Virtual memory showing here is the Swap memory or is it a part of Physical memory. Pls clarify me on this. If i add swap space will it get reflected in top command?.

Thanks

Abhi
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: Memory information from "top" command

Hi Abhi,

If you would like to know abt swap information,
# swapinfo

This thread addresses your doubt,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=760319

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Kumar .A_1
Honored Contributor

Re: Memory information from "top" command

Hi,

Check this link, very good info about the info provided by various commands as far as Memory is concerned.

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

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
abhilash_op
Advisor

Re: Memory information from "top" command

Hello Arun,

Let me clarify my question. I just would like to know about the memory details shown in the top command. I could see that whatever swap i added is showing in the "swapinfo -tam" command. But it is not showing in the top o/p. So whether in top o/p it will display only Physical memory info?.

Thanks

Abhi
Arunvijai_4
Honored Contributor

Re: Memory information from "top" command

Hi Abhi,

This is what i can see from man "top"

Memory Data Includes virtual and real memory in use (with the amount of memory considered "active" in parentheses) and the amount of free memory.


Real memory is the 'real' memory that has been requested by the processes

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Kumar .A_1
Honored Contributor

Re: Memory information from "top" command

Hi Abhi,

This is the explanation of the top output, as indicated in the link I provided in previous post...

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


In the above example,


Memory is not all of physcial, memory, it is:
515216K, Total physical memory in the system DEDICATED to text, data or stack segments for all processes on the system.
441660K, Total physical memory for runnable processes, as opposed to sleeping processes.
1537516K, 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.)
1434024K, Total memory for runnable processes, as opposed to sleeping or stopped processes.
1365132K, Physical memory the system considers to be unused and available to new processes. When this value is low, swapping is likely to occur.


refer : ftp://hprc.external.hp.com/memory.htm#topcommand

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Fabio Ettore
Honored Contributor

Re: Memory information from "top" command

Hi,

you are asking here to clear top outputs.
However just a suggestion: in order to check the memory usage and swapinfo the best tools are respectively glance and swapinfo.

Best regards,
Fabio

P.S.: pls don't forget to assign points to ITRC people that helped you. That is a very great feature of this forum!
WISH? IMPROVEMENT!
abhilash_op
Advisor

Re: Memory information from "top" command

Thanks for your replies. From the replies i could make out that the memory info shown in top command does not contain the swap memory info and it shows only Physical memory.Since in the top o/p it was showing as virtual memory so i was confused that it is swap memory.