1847311 Members
2980 Online
110264 Solutions
New Discussion

Re: Showing memory

 
SOLVED
Go to solution
Kevin_107
Regular Advisor

Showing memory

When showing memory via Sam it 53191 KB (Real Acitve) but does not show total. How can I show totally memory for my machine. Ive tried dmesg..but unable to show it due to f/s full messages.
He who laughs last.....doesnt get the joke !!
6 REPLIES 6
John Poff
Honored Contributor

Re: Showing memory

Hi,

I like to use Glance. The system tables report will show you the total physical memory. I think the print_manifest script from Ignite will also give you those numbers.

JP
Pete Randall
Outstanding Contributor

Re: Showing memory

Try this script:

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

Pete

Pete
Bernhard Mueller
Honored Contributor
Solution

Re: Showing memory

Hello,

if you do not have glance use stm:

# cstm
> map
> sel dev ###
(enter the number for memory as ###)
> information
> infolog

Regards
Bernhard
Kevin_107
Regular Advisor

Re: Showing memory

Thanks for you help chaps
He who laughs last.....doesnt get the joke !!
MANOJ SRIVASTAVA
Honored Contributor

Re: Showing memory

Hi Kevin


You can use the attached c script to get o/p like this :

Memory Stat total used avail %used
physical 32764.0 8058.4 24705.6 25%
active virtual 531.3 128.9 402.4 24%
active real 597.0 136.0 461.0 23%
memory swap 26522.5 3738.2 22784.3 14%
device swap 2378.0 2365.5 12.5 99%


This script I got from the forums itslef and works good.


Manoj Srivastava
Bill Hassell
Honored Contributor

Re: Showing memory

The easiest to remember is to run SAM and look at the system inventory under Performance -> System Properties. The physical memory is at the top of the listing. This inventory is quite good at getting an overview of your system.


Bill Hassell, sysadmin