Operating System - HP-UX
1819688 Members
3530 Online
109605 Solutions
New Discussion юеВ

Idle process reported as using 5.06% CPU

 

Idle process reported as using 5.06% CPU

HP-UX 11i, PA-RISC, 2 CPUs, fairly new patches.

I have a completely idle process that is reported as using 5.06% CPU by top and other tools. I have verified that the process does absolutely nothing. The problem occurs after putting heavy load on the process and the stopping the load. Then the CPU use for the process is reported as 5.06% even after 24 hours idle. It does not agree with the overall system CPU use either.

Is this a known problem, and is there a workaround?
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Idle process reported as using 5.06% CPU

What tool(s) are you using to measure this?


Pete

Pete
Steve Steel
Honored Contributor

Re: Idle process reported as using 5.06% CPU

Hi

What does this give


1 echo $_
2 user=$1
3 echo $user
4 echo " $(UNIX95= ps -e -o pcpu -o ruser -o sz -o vsz -opid -oppid -otime -otty -o args|head -n1)"
5 UNIX95= ps -e -o pcpu -o ruser -o sz -o vsz -opid -oppid -otime -otty -o args|grep -v %CPU| sort -nr|tail -n +2|head -n 20|grep " "$user




5 line script so run it twice

Give user name as param

Top is very liberal with figures

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)

Re: Idle process reported as using 5.06% CPU

Sorry for the long delay (other things to do). I don't have the system setup anymore, but will try to recreate the problem when I have a chance.

The tool used for getting the statistics were 'top' from HP-XU porting centre, and a home-grown top (http://i1.dk/download/isjtop/)

The weird percentage comes from the pstat API, specifically pstat_getproc() where 'pst_pctcpu' seems stuck at 5.06%