Operating System - HP-UX
1834272 Members
64852 Online
110066 Solutions
New Discussion

Re: Find out CPU's speed and memory

 
SOLVED
Go to solution
ramesh_6
Frequent Advisor

Find out CPU's speed and memory

How to find how many CPU's, Speed of the CPU' memory and storage capacity available in HP-UX 11.00? Is there any commands?

Your help is highly appreciated.

Regds
Ramesh
9 REPLIES 9
Francois Bariselle_3
Regular Advisor

Re: Find out CPU's speed and memory

Hi,

See the number of CPU's using
the top command. for more information, use glance or swapinfo.

Frank
Fais la ...
S.K. Chan
Honored Contributor

Re: Find out CPU's speed and memory

Try this ..

# echo "selall;info;wait;infolog
> view
> done
> "|cstm > sys-info
# more sys-info

OR

# /opt/ignite/bin/print_manifest
Helen French
Honored Contributor
Solution

Re: Find out CPU's speed and memory

Hi Ramesh:

1) top - will give you 'how may CPUs'
2) SAM - Resource management - system properties - will give you the CPU speed
3) stm - will give you all hardware details - CPU, memory, speed etc
4) dmesg - will give you memory information
5) swapinfo - swap information
6) ioscan -fn - device informations

HTH,
Shiju
Life is a promise, fulfill it!
Joseph C. Denman
Honored Contributor

Re: Find out CPU's speed and memory

You should be able to get info from stm.

run

xstm

...jcd...




If I had only read the instructions first??
Jeff Schussele
Honored Contributor

Re: Find out CPU's speed and memory

You can use the sysinfo utility - will give all this & much more.
Available at:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
linuxfan
Honored Contributor

Re: Find out CPU's speed and memory

Hi,

STM(cstm/mstm/xstm) will all give you lots of details, but for this you need to have Online Diagnostics installed.
For more details look at
http://docs.hp.com/hpux/diag/index.html#Online%20Diagnostics:%20Support%20Tools%20Manager%20(STM)

If you are looking for quick way to check number of enabled processors on the system (ioscan -fnC processor |wc -l)

To determine the speed of the processors,
echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/10000 " MHz"}'

-HTH
Rames
They think they know but don't. At least I know I don't know - Socrates
Helen French
Honored Contributor

Re: Find out CPU's speed and memory

Hi Ramesh:

No. 2) in my above answer should be SAM-> Performance Monitors-> System properties.

Also:

# print_manifest - will give you all system specific information, if you have ignite installed.

# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem - will give you CPU speed.

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

Re: Find out CPU's speed and memory

##Number of processors

sar -Mu 1 1|awk 'END {print NR-5}'


ioscan -kfnC processor


###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



## 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
steven Burgess_2
Honored Contributor

Re: Find out CPU's speed and memory

Hi

Here's a script to check memory info

let x=$(grep -i physical: /var/adm/syslog/syslog.log | head -1 | awk '{print $7}
')/1048
let z=$(vmstat|tail -1|awk '{print $5}')*4096;let z=$z/1000000
let free=100000/$x*$z
let free=$free/1000
let free=100-$free
echo "$x Mb physical memory \n$z Mb memory free \n$free % used"

Regards

Steve


take your time and think things through