1833641 Members
3718 Online
110062 Solutions
New Discussion

performance

 
SOLVED
Go to solution
Shivkumar
Super Advisor

performance

Hi,

How to check number of cpu ? In the output of "vmstat" what parameters indicates server has no performance issue ?

Thank,
Shiv

15 REPLIES 15
Pete Randall
Outstanding Contributor
Solution

Re: performance

Shiv,

ioscan -k |grep -n processor |wc -l will give you the CPU count. You can also check processor speed and CPU type like this:

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


The primary stat I look at with vmstat is the po column to make sure I'm not paging/swapping.


Pete

Pete
RAC_1
Honored Contributor

Re: performance

1. ioscan -fnCprocessor
2. There is no single command that will tell you that. It is combination of different commands/tools that will tell you that. You would start with glance

Look at cpu, memory, network and swap. Which is causing the problem??

Other things you need to look at are as follows
iostat
sar -d

Anil
There is no substitute to HARDWORK
DCE
Honored Contributor

Re: performance

Glance will give you performance specifics on each cpu (and quantity). stm will give you specifications of each cpu (and quantity)

dave
Senthil Kumar .A_1
Honored Contributor

Re: performance

Hi shiv,

Try this as root...

echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem



regards.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: performance

use "/dev/kmem" if the previous command fails..

echo "runningprocs/D" | adb -k /stand/vmunix /dev/kmem
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Leif Halvarsson_2
Honored Contributor

Re: performance

Hi,

Or, use top.

Number of CPUs and the load for each CPU is listed on the top of the output.
Geoff Wild
Honored Contributor

Re: performance

And here's a good script called hpmem:

# hpmem
HP-UX svr003 B.11.11 U 9000/800 2504392627 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 542 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 7


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Eknath
Trusted Contributor

Re: performance

Hi Shiv,

There are many ways, You can use top, glanceplus(if itis installed), ioscan, model, ctsm. etc.
vmstat gives virtual memory stats as name suggest. Broadly we can say that less no of faults better is the performance. But Glance Plus will give you better picture.

Cheers !!!
eknath
Con O'Kelly
Honored Contributor

Re: performance

Hi Shiv

I would not rely specifically on vmstat to assess your server performance.

Glance and Measureware are the best tools to monitor performance but they are licensed products (though 60 Day Trial versions are available on HP-UX Application CD's).

If you are using 'vmstat' then I'd be looking at the following fields:

- High number in the 'procs b' (processes blocked).

- Low number in 'free' field. This would indicate very little free memory.

- Look at 'po' (pageouts). As a rough guide any consistent values over 1-2 may indicate pageout activity and hence memory bottleneck.

- 'cpu id' % CPU idle. if this is consistently at 0-5% then you may have CPU bottleneck.

If you don't have Measureware (OVPA) I'd look at using sar to collect historical performance data (see man sa1). You can run it from cron.

Cheers
Con
Devesh Pant_1
Esteemed Contributor

Re: performance

I have been using the following

/usr/sbin/diag/contrib/pdcinfo -no_banner

or you can run the attached kshell script that will provide you with the CPU and memory and some more stuff.
thanks
Devesh
Nguyen Anh Tien
Honored Contributor

Re: performance

using top command
for example, my server has 4 CPU it display like this
#top
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.79 41.7% 0.0% 21.5% 36.8% 0.0% 0.0% 0.0% 0.0%
1 0.81 45.9% 0.0% 17.7% 36.4% 0.0% 0.0% 0.0% 0.0%
2 1.01 33.9% 0.0% 19.3% 46.9% 0.0% 0.0% 0.0% 0.0%
3 0.79 36.8% 0.0% 21.5% 41.7% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 0.85 39.6% 0.0% 19.9% 40.4% 0.0% 0.0% 0.0% 0.0%
HP is simple
Ted Buis
Honored Contributor

Re: performance

You should also be able to find it in SAM ('sam'). SAM -> Performance Monitors -> System Properties.
Mom 6
Cem Tugrul
Esteemed Contributor

Re: performance

Hi,
using "top" command is the most quick way

good luck,
Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor

Re: performance

hi,
Another fantasy command;
print_manifest|grep -i Processors

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Mahesh Kumar Malik
Honored Contributor

Re: performance

Hi Shiv

Use follwing command to get multi CPU utilisation:

#sar -M -u 5 5

However performance monitoring tools like Glance plus , Measureware provide better details

Regards
Mahesh