Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2005 11:09:56 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Kazuaki Oda <kaakun@highway.ne.jp>
Cc:        threads@freebsd.org
Subject:   Re: thread accounting in libpthread
Message-ID:  <Pine.GSO.4.43.0502181107190.15827-100000@sea.ntplx.net>
In-Reply-To: <4214C4D5.2080100@highway.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Feb 2005, Kazuaki Oda wrote:

> Hi,
>
> thr_accounting function (libpthread/thread/thr_kern.c) calculates
> thread->slice_usec, and it uses tm_uticks, tm_sticks and _clock_res_usec.
> I think that kernel counts up tm_uticks and tm_sticks at statclock interrupt
> time, and on -CURRENT _clock_res_usec is 1000 and on 5-STABLE it is 10000.
>
> Does thr_accounting calculate thread->slice_usec correctly?

I just fixed this.  It didn't really affect anything, though, since
it's all relative.  You could have used any bogus number for the
resolution of a tick.

-- 
DE



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