Subject: Re: CVS commit: [ktrace-lwp] src/sys
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: source-changes
Date: 07/02/2003 18:39:50
On Wed, 2 Jul 2003, Jason Thorpe wrote:

> On Wednesday, July 2, 2003, at 06:12  PM, Bill Studenmund wrote:
>
> > It has both per-LWP and per-proc accounting (as I understand it).
> > While an
> > LWP is alive, its usage accumulates in it. When an LWP exits, its
> > usage is
> > transfered to the proc. So at any given time, the overal rusage is the
> > proc's rusage + the sum of the rusage on all the lwps.
>
> In Solaris, LWPs are associated with a proc long-term.  As I understand
> it, in our kernel, they are not necessarily.  Nathan -- correct me if
> I'm wrong.

Yeah, I was thinking of that, and it'd make some of the utility Solaris
gets not be there. But it would save lock contention.

Take care,

Bill