From owner-freebsd-stable@FreeBSD.ORG Tue Dec 19 11:39:26 2006 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 47CB916A4D0 for ; Tue, 19 Dec 2006 11:39:26 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B23243CA7 for ; Tue, 19 Dec 2006 11:39:25 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lclejq@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id kBJBSDkP052003; Tue, 19 Dec 2006 12:28:19 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id kBJBS3TG052002; Tue, 19 Dec 2006 12:28:03 +0100 (CET) (envelope-from olli) Date: Tue, 19 Dec 2006 12:28:03 +0100 (CET) Message-Id: <200612191128.kBJBS3TG052002@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, aw1@stade.co.uk In-Reply-To: <20061217034602.GA52524@steerpike.hanley.stade.co.uk> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 19 Dec 2006 12:28:49 +0100 (CET) Cc: Subject: Re: negative runtime etc. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, aw1@stade.co.uk List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 11:39:26 -0000 Adrian Wontroba wrote: > Vclav Haisman wrote: > > Hi, I have loads of following messages in newly installed virtual server > > (under MS Virtual Server 2005 R2) running 6.2 RC1, I am even using the > > stock kernel. Can I fix this? > > Dec 16 18:33:27 shell kernel: calcru: negative runtime of -553620 usec > > for pid 76484 (zsh) > > Dec 16 18:33:27 shell kernel: calcru: runtime went backwards from > > 1004708 usec to 791507 usec for pid 655 (sendmail) > > You can reduce them somewhat by using a slower clock tick and perhaps a > different timecounter: > > ==> /boot/loader.conf <== > kern.hz="200" > > ==> /etc/sysctl.conf <== > kern.timecounter.hardware=ACPI-safe > > The above reduced my errors to a few hundred a day and improved time > keeping. Setting up the host as an NTP server and running > ntpdate once a minute seems to have sufficed to keep time accurate > enough for my needs. Just a small note: It does not make sense to run ntpd _and_ ntpdate at the same time. Usually it is sufficient to just run "ntpd -g" (ntpdate is obsolete anyway and will be removed from future versions of the ntp software). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot)." -- Terry Lambert, FreeBSD-hackers mailing list.