From owner-freebsd-stable@FreeBSD.ORG Sat Jun 9 12:33:48 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA14916A41F for ; Sat, 9 Jun 2007 12:33:48 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 5FFDF13C44C for ; Sat, 9 Jun 2007 12:33:48 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id l59CXhmD005579; Sat, 9 Jun 2007 16:33:43 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sat, 9 Jun 2007 16:33:43 +0400 (MSD) From: Dmitry Morozovsky To: Matthew Dillon In-Reply-To: <200706090809.l5989Mkj020033@apollo.backplane.com> Message-ID: <20070609163329.P4850@woozle.rinet.ru> References: <20070606153542.Y76617@woozle.rinet.ru> <20070606231940.T91939@woozle.rinet.ru> <200706062127.l56LRYTe090137@apollo.backplane.com> <20070608111809.U97287@woozle.rinet.ru> <200706090809.l5989Mkj020033@apollo.backplane.com> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Sat, 09 Jun 2007 16:33:43 +0400 (MSD) Cc: freebsd-stable@freebsd.org, Ivan Voras Subject: Re: calcru: runtime went backwards, RELENG_6, SMP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2007 12:33:49 -0000 On Sat, 9 Jun 2007, Matthew Dillon wrote: MD> :Hmm, i'm not sure I understand you right: what do you mean by 'kgdb live MD> :kernel'? I send break over serial console, and in ddb got MD> : MD> :db> print cpu_ticks MD> :Symbol not found MD> : MD> :Sincerely, MD> :D.Marck [DM5020, MCK-RIPE, DM3-RIPN] MD> MD> I think it works the same on FreeBSD, so it would be something like: MD> MD> kgdb /kernel /dev/mem MD> MD> ^^^ NOTE! Dangerous! ^^^ MD> MD> But I looked at the cvs logs and the variable didn't exist in FreeBSD-6, MD> so it wouldn't have helped anyway. MD> MD> It looks like it is using binuptime() in 6.x, and it also looks like MD> the tick calculations, e.g. rux_uticks, is based on the stat clock MD> interrupt, whereas the runtime calculation is using binuptime. There MD> is no way those two could possibly be synchronized. No chance MD> whatsoever. Your only solution may be to upgrade to FreeBSD-7 which MD> uses an entirely different mechanism for the calculation (though one MD> that also seems flawed in its own way). MD> MD> Alternatively you could just remove the error message from the kernel MD> entirely and not worry about it. It's a printf around line 774 MD> in /usr/src/sys/kern/kern_resource.c (in FreeBSD-6.x). Well, I can of course shut the kernel up, but kernel time stability is still my concern. I run ntpd there and while sometimes it seems stable (well, sorta: drift are within several seconds...) there are cases of half-a-minute time steps. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------