Operating System - HP-UX
1847381 Members
6187 Online
110264 Solutions
New Discussion

Re: cpu & physical memory

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

cpu & physical memory

Hey guys,

besides running glance, is there any other way to tell the amount of cpu and physical memory in a L-class server. Thanks for your time and points will be given.
10 REPLIES 10
harry d brown jr
Honored Contributor
Solution

Re: cpu & physical memory

print_manifest - part of ignite-ux, usually in /opt/ignite/bin.

live free or die
harry
Live Free or Die
Emiel van Grinsven
Valued Contributor

Re: cpu & physical memory

Hi,

Doesn't 'top -d1' give you the output you need?

grt, Emiel
Francois Bariselle_3
Regular Advisor

Re: cpu & physical memory

Hi,

a) top : will give you 'how may CPUs'
b) SAM : Resource management, system properties will give you the CPU speed
c) stm : will give you all hardware details, CPU, memory, speed etc
d) dmesg : will give you memory information
e) swapinfo : swap information
f) ioscan -fn : device informations

Frank
Fais la ...
John Palmer
Honored Contributor

Re: cpu & physical memory

STM tools such as cstm and mstm will also give you what you want. Additionally, they'll also tell you how memory is physically configured.

Regards,
John
James R. Ferguson
Acclaimed Contributor

Re: cpu & physical memory

Hi:

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

# echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpuinfo

Regards!

...JRF...
Helen French
Honored Contributor

Re: cpu & physical memory

Hi Sanman:

For finding out the CPU and memory usage:

1) top
2) sar
3) SAM -> Performance monitors
4) swapinfo
5) ps ( process status )

To find out the actual physical memory and CPUs in the system:

1) stm
2) offline diag
3) top
4) sam
5) dmesg
6) ioscan

HTH,
Shiju
Life is a promise, fulfill it!
Trond Haugen
Honored Contributor

Re: cpu & physical memory

ioscan for CPUs and the stary of syslog.log for memory.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Hai Nguyen_1
Honored Contributor

Re: cpu & physical memory

If you have glance installed, then
1) to get detailed info on memory, run:
/opt/perf/bin/glance -m

2) to get detailed info on cpu, run:
/opt/perf/bin/glance -c

in both cases, to quit, just hit q once.

Hai
Hai Nguyen_1
Honored Contributor

Re: cpu & physical memory

Another way to get the amount of RAM, run:
/usr/sam/lbin/getmem

Hai
someone_4
Honored Contributor

Re: cpu & physical memory

## script get total of memory

#!/bin/ksh
if [ `uname -r` = "B.11.00" ]
then
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print $2/256 " MB"}'
else
echo "physmem/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print "Memory size = " $2 / 256 " Megabytes"}'
fi


###To obtain the processor speed (MHz):

echo itick_per_usec/D|adb -k stand/vmunix /dev/kmem|awk 'NR==2 {print}'

or

echo itick_per_usec/D | /usr/bin/adb -k /stand/vmunix /dev/kmem


Richard