1834814 Members
2447 Online
110070 Solutions
New Discussion

Re: vpars

 
SOLVED
Go to solution
Jacques Carriere
Regular Advisor

vpars

Can someone tell me what command to use to display all the memory on a server setup with virtual partitions. The command "vparstatus" gives me a good breakdown per virtual partition, but it doesn't give me the total amount of memory in the box.
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: vpars

I think this command will give you the value, even in a vpars environment:

echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm

But you can also run

vparstatus

to see all the bound memory
and

vparstatus -A

to see the unbound memory.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: vpars

My favorite way to see the total memory is:

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM

However, in a VPars situation, this will only report what is available to the partition it is run in. As far as I know, none of the usual techniques will show the total memory available to all partitions.


Pete

Pete
Jacques Carriere
Regular Advisor

Re: vpars

this gives me total physical memory.

echo "selclass qualifier memory;info;wait;infolog" |/usr/sbin/cstm
D Block 2
Respected Contributor

Re: vpars

vparstatus -A

and look at the ending for available resource information. if you need to expand memory, read the required increments and if you use SuperDome be find the requirements for "interleaving" memory banks/sizing.

Golf is a Good Walk Spoiled, Mark Twain.
Raj D.
Honored Contributor

Re: vpars

Hi Jacques ,

You can use this command :

# vparstatus -v | grep -e Name -e "Total Memory"

Output will be like this :
-------------------------------
Name: vpar01
Total Memory (MB): 10240
Name: vpar02
Total Memory (MB): 4096



Cheers,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
Asif Sharif
Honored Contributor

Re: vpars

echo "selclass qualifier memory;info;wait;infolog" |/usr/sbin/cstm

Basic Memory Description

Module Type: MEMORY
Total Configured Memory : 2048 MB
Page Size: 4096 Bytes

Memory interleaving is supported on this machine and is ON.

Memory Board Inventory

DIMM Slot Size (MB)
--------- ---------
00 512
01 512
02 512
03 512
--------- ---------
System Total (MB): 2048
Regards,
Asif Sharif
Jacques Carriere
Regular Advisor

Re: vpars

Torsten - selclass ... gives me the info
Pete - the echo adb portion of your script doesn't work

Tom - vparstatus -A doens't give me total memory

Raj - vparstatus -v | grep -e Name -e "Total Memory" doesn't doesn't give me anything. I have an ia64 hp server rx7620(8-way).


Asif - you are right - this works.


thanks guys . Jacques


thanks to all who participated. Jacques
Asif Sharif
Honored Contributor

Re: vpars

Hi Jacques,

Please assign points.

Regards,
Asif Sharif
Regards,
Asif Sharif