Date: Fri, 18 Feb 2005 01:22:45 +0900 From: Kazuaki Oda <kaakun@highway.ne.jp> To: threads@FreeBSD.org Subject: thread accounting in libpthread Message-ID: <4214C4D5.2080100@highway.ne.jp>
next in thread | raw e-mail | index | archive | help
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? -------------------- Kazuaki Oda
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4214C4D5.2080100>