Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2006 14:34:25 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Ilya E Veretenkin <ilyaver@mail.ru>, freebsd-threads@freebsd.org
Subject:   Re: getting particular thread cpu time
Message-ID:  <Pine.GSO.4.43.0602011422190.8773-100000@sea.ntplx.net>
In-Reply-To: <43E109F1.6020304@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 1 Feb 2006, Julian Elischer wrote:

> Daniel Eischen wrote:
>
> >Libpthread is M:N by default, so the kernel doesn't know about
> >userland threads.
> >
> >
>
> though we might think about ways that we can get that information..
> maybe a way that the user thread scheduler can be asked for the info?

We don't currently maintain per-thread system and user time.
It's not just that either, there has to be some way to identify
each thread and the kernel would need that info (name, thread
id, ??) also.  You _could_ add pthread_getrusage_np(), or
something like that, to the threads libraries which would
make it visible to the application, but I hesitate to think
this information would be useful to the kernel so that ps
and top can show it.  I think ps and top should just show
the kernel entities and that's it.  I wouldn't strongly
oppose making these utilities show userland thread info
as long as it didn't impact performance.

-- 
DE




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0602011422190.8773-100000>