Operating System - HP-UX
1829644 Members
1529 Online
109992 Solutions
New Discussion

how to get info about memory ?

 
SOLVED
Go to solution

how to get info about memory ?

Hello,

I am interested in getting the following info:
- phisical RAM total and available( or used )
- virtual RAM -- -----------------------
- swap - ---------------------------
- shared ----------------------------
- buffers ---------------------------
- cache ----------------------------

(without looking at top)
6 REPLIES 6
Stuart Browne
Honored Contributor

Re: how to get info about memory ?

/proc/meminfo is your friend
One long-haired git at your service...
Balaji N
Honored Contributor
Solution

Re: how to get info about memory ?

[balaji@fire balaji]$ cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 261283840 226140160 35143680 73728 10203136 111652864
Swap: 1300881408 0 1300881408
MemTotal: 255160 kB
MemFree: 34320 kB
MemShared: 72 kB
Buffers: 9964 kB
Cached: 109036 kB
SwapCached: 0 kB
Active: 12992 kB
Inact_dirty: 88876 kB
Inact_clean: 17204 kB
Inact_target: 332 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 255160 kB
LowFree: 34320 kB
SwapTotal: 1270392 kB
SwapFree: 1270392 kB
NrSwapPages: 317598 pages


cheers
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Claudio Cilloni
Honored Contributor

Re: how to get info about memory ?

Then you're in the wrong forum...
but you can use this in hpux:

# swapinfo -tam

hth
Claudio

Re: how to get info about memory ?

Sorry. Now i noticed that the forum is for linux here.
I don't have exection rights on swapinfo
Anything else ?
Sang Yi
Occasional Contributor

Re: how to get info about memory ?

/usr/bin/free is a nice front for /proc/meminfo
makes it friendly to read.
Caesar_3
Esteemed Contributor

Re: how to get info about memory ?

Hello!

For hpux: swapinfo, vmstat
For linux: cat /proc/meminfo, free

Caesar