From owner-freebsd-threads@FreeBSD.ORG Thu Feb 17 16:23:23 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DD0C16A4CE for ; Thu, 17 Feb 2005 16:23:23 +0000 (GMT) Received: from mx.highway.ne.jp (pip7.usen.ad.jp [61.122.117.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5044743D31 for ; Thu, 17 Feb 2005 16:23:22 +0000 (GMT) (envelope-from kaakun@highway.ne.jp) Received: from [219.195.104.17] (helo=[192.168.11.16]) by pop12.isp.us-com.jp with esmtp (Mail 4.20) id 1D1oQy-0004be-Sg for threads@FreeBSD.org; Fri, 18 Feb 2005 01:23:20 +0900 Message-ID: <4214C4D5.2080100@highway.ne.jp> Date: Fri, 18 Feb 2005 01:22:45 +0900 From: Kazuaki Oda User-Agent: Mozilla Thunderbird 1.0 (X11/20050101) X-Accept-Language: en-us, en MIME-Version: 1.0 To: threads@FreeBSD.org Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: thread accounting in libpthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 16:23:23 -0000 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