From owner-freebsd-current@FreeBSD.ORG Wed Feb 22 17:03:59 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B9F316A420 for ; Wed, 22 Feb 2006 17:03:59 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA38B43D45 for ; Wed, 22 Feb 2006 17:03:58 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k1MH3nr2044612; Wed, 22 Feb 2006 12:03:57 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Kazuaki Oda Date: Wed, 22 Feb 2006 12:04:33 -0500 User-Agent: KMail/1.9.1 References: <200602211047.06599.jhb@freebsd.org> <200602221101.41027.jhb@freebsd.org> <43FC951E.2070002@highway.ne.jp> In-Reply-To: <43FC951E.2070002@highway.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602221204.35413.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1297/Tue Feb 21 16:44:31 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: current@freebsd.org, Kris Kennaway Subject: Re: [PATCH] possible fix for the runtime going backwards warnings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 17:03:59 -0000 On Wednesday 22 February 2006 11:45, Kazuaki Oda wrote: > John Baldwin wrote: > > The pagezero ones are truly odd. calcru() shouldn't be called for kthreads > > very often (if at all). I wonder if your tickrate is changing out from under > > you. Try editing sys/i386/i386/tsc.c and where it does 'set_cputicker(rdtsc, > > tsc_freq, 1)' change the last parameter to '0' and see if they go away. > > > > I still get calcru messages too. And I have noticed that I get these > messages when I run ps or top command. When we run ps, > fill_kinfo_proc_only() is called, and I think calcru() and calccru() > for kthreads are called in that function. Ok, that makes sense (as to why calcru() is getting invoked). I would try the change I suggested earlier of forcing the tsc to be treated as statically scaled rather than dynamic. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org