Subject: Re: Speeding up fork/wait path
To: None <tech-kern@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 10/28/2003 00:11:13
On Sat, Oct 25, 2003 at 05:58:38PM -0400, Allen Briggs wrote:
> [...]
> I have to ask, though, if this would be a real-world gain (given
> that you still incur the same context switches)? I suppose it
> would mean that a process waiting for the exit could get the result
> a bit sooner and could fire off another process a bit sooner (with
> the slight chance that it would fire up with some resource starvation
> that would be satisfied by the reaper).
You could then have the reaper run as a background low-priority task.
It wouldn't need to be waked up at each process exit(), and could
batch the clean ups, reducing the number of context switches on a
loaded system.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 24 ans d'experience feront toujours la difference
--