RE: Why so must idle time ?

From: David Schwartz (davids@webmaster.com)
Date: Fri Jul 07 2000 - 12:56:47 EST


> >> I have a machine running web server. It has a lot of httpd's loaded and
> >> most of them are sleeping. The load average is always around 7-13, so I
> >> wonder why the CPU usage doesn't reach ~100%. It wastes CPU time or
> >> simply there is something top does not show ?

> > Two words, "disk I/O".

> Which is very low. I have 384MB and disk i/o is below 1MB/s most
> of time with
> little seeking. Anyway during disk I/O the task is sleeping, not
> ready, and CPU
> should be given to another task.

        The CPU would be given to another task if there were one that wanted it.
But since you have low CPU usage, there probably isn't another task that
wants it. Anyway, a task that is waiting for disk I/O counts toward the load
average.

        DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:21 EST