Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2007 22:12:14 -0700 (PDT)
From:      Jeff Roberson <jroberson@chesapeake.net>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        freebsd-arch@freebsd.org
Subject:   Updated rusage patch
Message-ID:  <20070529220936.W661@10.0.0.1>
In-Reply-To: <20070529201255.X661@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>

next in thread | previous in thread | raw e-mail | index | archive | help
I have updated the patch at:

http://people.freebsd.org/~jeff/rusage3.diff

I have incorporated much of the feedback from the earlier diff.  I have 
also changed the cpulimit code to use a callback.  This removes a PS_ flag 
and a bunch of code from mi_switch() and ast().  mi_switch() now does not 
need to touch the proc at all unless debugging is enabled.  I have tested 
the cpu limiting code as well and it seems to function properly.

My only reservation is the extra overhead of another callout per proc.

Thanks,
Jeff



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