Operating System - HP-UX
1837414 Members
3452 Online
110116 Solutions
New Discussion

The command for memory information is....?

 
SOLVED
Go to solution
Adam Hicks
Advisor

The command for memory information is....?

I've forgotten the command to find out my memory information on my Nclass, I thought it was MEMMAP or somthing of the sort. PLEASE HELP!
6 REPLIES 6
Brian Bergstrand
Honored Contributor

Re: The command for memory information is....?

What kind of memory info:

swap:

swapinfo -tam

page, active, virtual

vmstat

shared mem:

ipcs -mo

Or use glance to get all of this in one place.

HTH.
Geoff Wild
Honored Contributor
Solution

Re: The command for memory information is....?

You can use adb....or this handy script called hpmem:

# hpmem
HP-UX pc0003 B.11.11 U 9000/800 2504392627 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 1008 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 2984
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 10


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.
Camel_1
Valued Contributor

Re: The command for memory information is....?

how about glance?
Jannik
Honored Contributor

Re: The command for memory information is....?

echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem | grep phys | tail -1 | awk '{printf "%.0f MB\n",$2/256}'

i can't test that it is correct but it looks ok! :-)
jaton
Michael Tully
Honored Contributor

Re: The command for memory information is....?

As long as you have diagnostics loaded on your system (which you should) this little one liner, will map what's in the memory slots.

# echo "selclass qualifier memory;info;wait;infolog" | cstm
Anyone for a Mutiny ?
Con O'Kelly
Honored Contributor

Re: The command for memory information is....?

Hi

I'd also add that if you want to find the amount of free memory on your system you can use the following:
# vmstat 1 2 | tail -1 | awk '{printf "%d %s\n", ($5*4)/1024, "MB" }'

This will give you the amount of free memory in MB. Alternatively you can use glance if it's installed ('m' option).

Cheers
Con