1754223 Members
3349 Online
108812 Solutions
New Discussion юеВ

Re: 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