1834150 Members
2980 Online
110064 Solutions
New Discussion

need help

 
SOLVED
Go to solution
hi_5
Frequent Advisor

need help

what command do I issue to check how many cpu that my system is currently running? what are the physical ram / memory ..etc..??
will kmtune do this??
7 REPLIES 7
Dario_1
Trusted Contributor

Re: need help

Hi!

Try:

echo "selclass qualifier cpu;info;wait;infolog"|cstm

or

ioscan -fC processor

Regards,

DR
Dario_1
Trusted Contributor

Re: need help

Hi Again:

Try the following for memory info:

dmesg | grep -i physical

or

cat /var/adm/syslog/syslog.log|grep Physical

Regards,

DR
Hai Nguyen_1
Honored Contributor

Re: need help

Try this for RAM:
# dmesg | grep -i "physical memory"

Or this for numbers of cpu's and RAM and much more:

# /opt/ignite/bin/print_manifest

Hai
Paul Sperry
Honored Contributor
Solution

Re: need help

sam==>Performance Monitors==>System Properties

will show you all of these and more :)

Pete Randall
Outstanding Contributor

Re: need help

You're making this too difficult! You can do it quite simply with ioscan:

ioscan -k |grep -n processor |wc -l


Pete

Pete
Pete Randall
Outstanding Contributor

Re: need help

For the others:

CPUSPEED -
HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ



RAM -
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
H.Merijn Brand (procura
Honored Contributor

Re: need help

All those together reported by the 'ux' script available on https://www.beepz.com/personal/merijn/#FAQ or http://www.cmve.net/~merijn/#FAQ

Pete, this works on 10.20 and up:

echo 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/mem

Though on 10.20 you better drop the -k, because it is most likely not supported

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn