1824721 Members
3576 Online
109674 Solutions
New Discussion юеВ

memory calculation

 
SOLVED
Go to solution
navin
Super Advisor

memory calculation

hello all,
We are running a monitoring tool which helps get a free memory info available in a hp system.I have to compare it with the output of top command ,but it was not so clear to me.Can you let me know how do we calculate the free mem(physical) using top command.
Thanks
Learning ...
6 REPLIES 6
Asif Sharif
Honored Contributor

Re: memory calculation

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1032905
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1210565985087+28353475&threadId=1180482

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.

PSET = ID of the processor set to which the
processor belongs.This is shown only when -P option is used.

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, orstop.

%WCPU = Weighted CPU (central processing unit) percentage.

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

http://docs.hp.com/en/B2355-60130/top.1.html

Regards,
Asif Sharif
Regards,
Asif Sharif
navin
Super Advisor

Re: memory calculation

Hello Thanks so much ,
Actually by mistake , i have mentioned as top. But it is not.I was checking the mem info in sam which shows me virtaul,real ,etc.I need to know how can i match this to get the total memory usage(physical and swap) in the system
Thanks Much Again
Learning ...
Asif Sharif
Honored Contributor

Re: memory calculation

Hi Navin,

You can check with swapinfo command.

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 2048 0 2048 0% 0 - 1 /dev/vg00/lvol2
reserve - 150 -150
memory 2048 431 1617 21%
total 4096 581 3515 14% - 0 -
#

Regards,
Asif Sharif
Regards,
Asif Sharif
Asif Sharif
Honored Contributor

Re: memory calculation

Read the Aashique response from below mentioned thread about kmeminfo sctipt.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1220246

Regards,
Asif Sharif
Regards,
Asif Sharif
Yogeeraj_1
Honored Contributor
Solution

Re: memory calculation

hi navin,

please have a look at the following url:
ftp://hprc.external.hp.com/memory.htm#topcommand


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


>Can you let me know how do we calculate the free mem(physical) using top command.

Here it is 1,365,132K free (i.e the last column)

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)
Dennis Handly
Acclaimed Contributor

Re: memory calculation

>Can you let me know how do we calculate the free memory

This may be a vague piece of info if you have lots of buffer cache that can be reused for virtual memory.
A more useful statistic is how much swapping your are doing, see vmstat(1).