From owner-freebsd-questions@FreeBSD.ORG Wed Dec 24 11:24:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04FA51065673 for ; Wed, 24 Dec 2008 11:24:16 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id B1D948FC19 for ; Wed, 24 Dec 2008 11:24:15 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1767091ywe.13 for ; Wed, 24 Dec 2008 03:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=XZKGJLcFpMY/naL4AsWSfRwK929o++X+CU5jVxbtje8=; b=LtSXCPoR0kKuqW7s4fHnXWzv3DaUs5IxThcgrEnDG+JiralgnsDOohaGCBaSL16iFz FQ2U0AbNtisRlpXuAs+/b2aLag3VSUVLlpZ/CMYKpU7Js6aznf4A6+Max6AD/6dDER28 UxrGcp7RMmUTd3XF1Jt3sSV/JVaZRySDT9kKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=bGu44XyIywuspl1DpmQApjOtRM9tOBZ6Bj7yIzlnSdJhSdMjGW8SsF6R2NvnGnYV27 x1mkkCenfgkXgP7b0FIdckHh7leme32gGLD7OiBwY+5bGofELn164fpB7S4jLyDprPBO iEMGNMj5KmD0OuL6PCFxItgoS3mw349Eh4Fu4= Received: by 10.90.120.19 with SMTP id s19mr4426485agc.17.1230115914342; Wed, 24 Dec 2008 02:51:54 -0800 (PST) Received: from ?192.168.1.100? ([190.177.200.106]) by mx.google.com with ESMTPS id 20sm27894130agb.16.2008.12.24.02.51.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Dec 2008 02:51:53 -0800 (PST) From: Gonzalo Nemmi To: freebsd-questions@freebsd.org Date: Wed, 24 Dec 2008 08:51:49 -0200 User-Agent: KMail/1.9.10 References: <4951B6D6.30206@highperformance.net> In-Reply-To: <4951B6D6.30206@highperformance.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812240851.49640.gnemmi@gmail.com> Subject: Re: Kernel Variables Sanity Check X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2008 11:24:16 -0000 On Wednesday 24 December 2008 2:13:10 am Jason C. Wells wrote: > Based on someone elses historical message I tried changing the time > counter from TSC to i8254 > > # sysctl kern.timecounter.hardware=i8254 > > and after doing some manual calculations I tweaked > > # sysctl machdep.i8254_freq=1187216 > # machdep.i8254_freq: 1193182 -> 1187216 > > Is doing this safe? I'm concerned that there are unforeseen > consequences to messing with these kernel variables. Ntpd seems to like > this setup. Anything to make ntpd happy. > > And if I may, why can't ntpd do this? (Don't answer that.) I use the > FINE software to set my clock so I don't have to. It's supposed to make > my life easier. > > Thanks, > Jason Hi Jason, and sorry to pop in, but now you got me guessing if I should follow your lead too ... This is what I get in here: [gonzalo@inferna ~]% grep Time /var/run/dmesg.boot Timecounter "i8254" frequency 1193182 Hz quality 0 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 Timecounters tick every 1.000 msec Should I change kern.timecounter.hardware to i8254 too?? Thanks -- Blessings Gonzalo Nemmi