Subject: Re: user profiling improvements
To: Chris G. Demetriou <cgd@sibyte.com>
From: Ethan Solomita <ethan@geocast.com>
List: tech-kern
Date: 08/11/2000 14:08:40
"Chris G. Demetriou" wrote:
>
> but, one of the things that I _don't_ think makes sense to count here
> is time spent sleeping because you were context switched away from
> (because some other process was higher priority).
>
I don't count that time. setrunnable(), unless I'm mistaken, is only
called when you wake up from sleeping on a wchan. So it would never be
called for the situation you describe, and no time would be counted. I
only count time from mi_switch() until setrunnable().
> * for "voluntary" context switches (i.e. context switches while
> waiting for data to become available, etc.), the time between going to
> sleep and when you would wake up if you were the only process on the
> system (i.e., the time until you're put back on a run queue).
>
> * for involuntary context switches, caused by scheduling some
> higher-priority process, nothing.
>
I agree entirely. 8-)
-- Ethan