1831294 Members
3247 Online
110022 Solutions
New Discussion

Memory question

 
Jeffrey F. Goldsmith
Super Advisor

Memory question

I have an L2000 server with HP-UX 11.0 and would like to know if there is a way to check how much memory is installed in the server.
Also, how do I change the size of the swap size to match the amount of installed RAM?
6 REPLIES 6
Sandman!
Honored Contributor

Re: Memory question

Use cstm to find out the total memory on your system, it'll also show you a complete picture of your memory layout as well.

# echo 'scl q memory;if;wait;il;done' | cstm

~hope it helps
James R. Ferguson
Acclaimed Contributor

Re: Memory question

Hi Jeff:

To ascertain what memory you have:

# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo

To increase your swap space (by example):

# lvcreate -C y -r n -L 8192 -n lvolX /dev/vgNN
# swapon -p 0 /dev/vgNN/lvolX

Then, add the following to '/etc/fstab':

/dev/vgNN/lvolX ... swap pri=0 0 0

No reboot is necessary.

Regards!

...JRF...
David Bellamy
Respected Contributor

Re: Memory question

1. You can use sam. Go to Performance Monitors=>System Properties.
2. You can create another lvol and make it your primary swap. do a man on swapon
Arturo Galbiati
Esteemed Contributor
Steven E. Protter
Exalted Contributor

Re: Memory question

Shalom Jeffery,

cstm is the best tool because it and I think mstm can show you simm/dimm slots and size of memory chips.

xstm for the gui enabled minds does the same thing.

swapinfo -tam

displays swap.

I do swap changes so seldomly I still rely on sam for that. A boot is required for changes to take effect.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
siva0123
Trusted Contributor

Re: Memory question

Hi ,


You can try dmesg too i think.


The last part of dmesg gives a memory report.


Siva