[317] in netbsd-help mailing list archive
Re: xload & CPU time.....
daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Sep 8 11:57:04 1995
To: I-Lin Wang <ilin@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Fri, 08 Sep 1995 08:24:56 EDT."
<199509081224.IAA04961@ilin.MIT.EDU>
Date: Fri, 08 Sep 1995 11:58:21 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> 1. as I emailed before, I found the xload representing some jobs is
> consuming my system load, but I do not find any job doing in the
> background.
Use "ps auxww" to look for jobs running. Look for jobs with a high
%CPU, since a process which is increasing the load is typically
spinning.
> However, I found the CPU time in my NetBSD a little strange. For
> the overall CPU time, it looks fine. But for the 4 procedures' CPU
> time respectively, sometimes I will get the numbers like:(in
> seconds)
Please send the part of your code that prints out each of the five
time values, including any calculations made and all calls to times().
If the final time value is always reasonable, it's probably not a
problem with the times() function. (You might try switching to the
getrusage() function if we can't find anything wrong with your code,
though.)