From owner-freebsd-stable@FreeBSD.ORG Sat Jun 9 08:09:32 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 BCB3016A469 for ; Sat, 9 Jun 2007 08:09:32 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.freebsd.org (Postfix) with ESMTP id A164B13C4BE for ; Sat, 9 Jun 2007 08:09:32 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.13.8/8.13.7) with ESMTP id l5989MjN020034; Sat, 9 Jun 2007 01:09:25 -0700 (PDT) Received: (from dillon@localhost) by apollo.backplane.com (8.13.8/8.13.4/Submit) id l5989Mkj020033; Sat, 9 Jun 2007 01:09:22 -0700 (PDT) Date: Sat, 9 Jun 2007 01:09:22 -0700 (PDT) From: Matthew Dillon Message-Id: <200706090809.l5989Mkj020033@apollo.backplane.com> To: Dmitry Morozovsky References: <20070606153542.Y76617@woozle.rinet.ru> <20070606231940.T91939@woozle.rinet.ru> <200706062127.l56LRYTe090137@apollo.backplane.com> <20070608111809.U97287@woozle.rinet.ru> 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 08:09:32 -0000 :Hmm, i'm not sure I understand you right: what do you mean by 'kgdb live :kernel'? I send break over serial console, and in ddb got : :db> print cpu_ticks :Symbol not found : :Sincerely, :D.Marck [DM5020, MCK-RIPE, DM3-RIPN] I think it works the same on FreeBSD, so it would be something like: kgdb /kernel /dev/mem ^^^ NOTE! Dangerous! ^^^ But I looked at the cvs logs and the variable didn't exist in FreeBSD-6, so it wouldn't have helped anyway. It looks like it is using binuptime() in 6.x, and it also looks like the tick calculations, e.g. rux_uticks, is based on the stat clock interrupt, whereas the runtime calculation is using binuptime. There is no way those two could possibly be synchronized. No chance whatsoever. Your only solution may be to upgrade to FreeBSD-7 which uses an entirely different mechanism for the calculation (though one that also seems flawed in its own way). Alternatively you could just remove the error message from the kernel entirely and not worry about it. It's a printf around line 774 in /usr/src/sys/kern/kern_resource.c (in FreeBSD-6.x). -Matt Matthew Dillon