From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 11:42:34 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E4E7B7C for ; Sat, 14 Feb 2015 11:42:34 +0000 (UTC) Received: from sasl.smtp.pobox.com (pb-sasl1.int.icgroup.com [208.72.237.25]) by mx1.freebsd.org (Postfix) with ESMTP id 6843D6DE for ; Sat, 14 Feb 2015 11:42:33 +0000 (UTC) Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 84F382D68C; Sat, 14 Feb 2015 06:42:26 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=sasl; bh= bizfBk3XheW2doZ8mQIKgIMv+qE=; b=cE2k3DJVkayT+ObYTJ/Y1Oe1bneqZfcQ oBNHxpiUdl3mVwdVkJ24kviZzPpa337ZQneJ0aGf86KEzHYPUtD/VO0EIulGk+0t Lbc3Sr9Dos5cP/ErTriLCIACSWRoI5pA2Dkh+BoE8kwjW1xxnc3ojm49K9JWNV/x MKrfBxmVvS4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= sasl; b=wywPocHUiMdky2pghJJvIYbdU2CMoU6Lox4fSvZT/KS6QuBHvY1YynNe bw7UZ62ydcfuCO9eJBJLVm9pVuMt8bvWZ1pxUL9xhhg+nW5dQMDCUS5txV3L/Scm LE2ileRvazjRGNCAUmxkvXBt9zWsxu+y9jNJ/kd+L96+QtQVBvI= Received: from pb-sasl1.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 7D5782D68B; Sat, 14 Feb 2015 06:42:26 -0500 (EST) Received: from almini.rcthomas.org (unknown [208.53.120.31]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 8BFA12D68A; Sat, 14 Feb 2015 06:42:25 -0500 (EST) Subject: Re: How to adjust clock frequency in FreeBSD 10.1 ? Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 From: Rick Thomas In-Reply-To: Date: Sat, 14 Feb 2015 03:42:22 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Adam Vande More X-Mailer: Apple Mail (2.1878.6) X-Pobox-Relay-ID: 8C3905FC-B43E-11E4-8084-8FDD009B7A5A-02150157!pb-sasl1.pobox.com Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2015 11:42:34 -0000 On Feb 11, 2015, at 9:36 PM, Adam Vande More = wrote: > On Wed, Feb 11, 2015 at 9:09 PM, Rick Thomas = wrote: >=20 >> Hi All, >>=20 >> I=92ve got a machine with a really bad clock. When I run NTP on it, = the >> freq goes straight to 500.0 (over a period of a few days) and stays = there, >> while the offset grows and grows. >>=20 >> I recently switched this machine from Debian Linux to FreeBSD = (wanting to >> learn more about FreeBSD). Under Linux, I used adjtimex to modify = the TICK >> value and (once I had converged on the right value) NTP was able to >> stabilize the clock. >>=20 >> Is there an equivalent hack for FreeBSD? >>=20 >=20 > You may wish to play around w/ >=20 > sysctl kern.timecounter >=20 > to find a setting that works for you. When I try to change the frequency with (e.g.) sysctl kern.timecounter.tc.timebase.frequency=3D36000000 I get sysctl: oid =91kern.timecounter.tc.timebase.frequency' is read only Is there some other way to set the frequency? Thanks! Rick=