Operating System - HP-UX
1753859 Members
7442 Online
108809 Solutions
New Discussion юеВ

Select and CPU Utlilization

 
Tim Rotunda
Frequent Advisor

Select and CPU Utlilization

I am trying to understand Selects and how they effect system performance. Anyone care to comment on the following snipet of a glance screen?

Thanks,
Tim

--------------------------------------------------------------------------------------------------------------------------
GLOBAL SYSTEM CALLS Users= 33
System Call Name ID Count Rate CPU Time Cum CPU
--------------------------------------------------------------------------------
fstat 92 679 133.1 0.00242 3.10617
select 93 157008 30785.8 0.56018 411.12575
2 REPLIES 2
doug hosking
Esteemed Contributor

Re: Select and CPU Utlilization

Tim, before you dig too much on this, be sure you are current on kernel patches. You don't mention which HP-UX release, but, for example, for 11.00 patches PHKL_18543 and PHKL_27813 might be of interest in improving performance of select().
rick jones
Honored Contributor

Re: Select and CPU Utlilization

regardless of just about anything else, it looks like this application is making a _VERY_ large number of calls to select() per second.

Probably worth some tusc tracing (verbose, enable lwpid logging) to see just what sort of select calls are being made.

if the select calls fit the sufficient pattern, a switch to eventports may be goodness - with the apropriate patches installed on 11 or 11i do a man 7 poll for more details.
there is no rest for the wicked yet the virtuous have no pillows