Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2007 18:55:36 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Jeff Roberson <jroberson@chesapeake.net>
Cc:        Attilio Rao <attilio@freebsd.org>, freebsd-arch@freebsd.org
Subject:   Re: Updated rusage patch
Message-ID:  <20070608185210.W12107@besplex.bde.org>
In-Reply-To: <20070607135511.P606@10.0.0.1>
References:  <20070529105856.L661@10.0.0.1> <200705291456.38515.jhb@freebsd.org> <20070529121653.P661@10.0.0.1> <20070530065423.H93410@delplex.bde.org> <20070529141342.D661@10.0.0.1> <20070530125553.G12128@besplex.bde.org> <20070529201255.X661@10.0.0.1> <20070529220936.W661@10.0.0.1> <20070530201618.T13220@besplex.bde.org> <20070530115752.F661@10.0.0.1> <20070531091419.S826@besplex.bde.org> <20070531010631.N661@10.0.0.1> <20070601154833.O4207@besplex.bde.org> <20070601014601.I799@10.0.0.1> <20070601200348.G6201@delplex.bde.org> <20070601123530.B606@10.0.0.1> <20070604160036.N1084@besplex.bde.org> <46652D17.5090903@FreeBSD.org> <20070605214404.X47001@delplex.bde.org> <20070606152352.H606@10.0.0.1> <20070607135511.P606@10.0.0.1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Jun 2007, Jeff Roberson wrote:

> On Wed, 6 Jun 2007, Jeff Roberson wrote:

>> 2)  We may lose information between exit1() and thread_exit() due to the 
>> way p_ru is initialized before we're done exiting.  There also seems to be 
>> a race where wait() operates on a process before it's done in thread_exit() 
>> which means wait may return rusage information without the child added in! 
>> The solution will be to fix this race, and then access p_ru directly in 
>> wait().

I haven't looked at the patch or thought much about the problems yet.

A very obvious problem turned up: after killing makeworld with ^C, the
times reported are usually almost 0 (even after running 800+ seconds).
The times are reasonable if makeworld completes or if a simple foreground
process is killed with ^C.  This might be (2).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070608185210.W12107>