From owner-freebsd-ppc@FreeBSD.ORG Tue Apr 8 15:02:46 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B21717D8; Tue, 8 Apr 2014 15:02:46 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 585121B1C; Tue, 8 Apr 2014 15:02:46 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1WXXXm-0007Kc-9Y; Tue, 08 Apr 2014 22:02:39 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id s38F2Ygn049609; Tue, 8 Apr 2014 22:02:49 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id s38F2Tlj049513; Tue, 8 Apr 2014 22:02:29 +0700 (NOVT) (envelope-from danfe) Date: Tue, 8 Apr 2014 22:02:29 +0700 From: Alexey Dokuchaev To: John Baldwin Subject: Re: System clock falls behind quickly on Mac mini G4 Message-ID: <20140408150229.GA46702@regency.nsu.ru> References: <20140328071714.GA45961@regency.nsu.ru> <201404071704.58659.john@baldwin.cx> <20140408142929.GC39088@regency.nsu.ru> <201404081041.44272.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201404081041.44272.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 59423 [Apr 08 2014] X-KLMS-AntiSpam-Version: 5.3.6 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 2864834, 2864886, 2864814 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server 8.0.0.455, not checked X-KLMS-AntiVirus-Status: NotChecked: not checked, skipped Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 15:02:46 -0000 On Tue, Apr 08, 2014 at 10:41:44AM -0400, John Baldwin wrote: > It wouldn't be tsc_freq on a powerpc box. You'd need to see what your > timecounter is and what frequency it is using (kern.timecounter nodes) > and see if that is adjustable. Yup, sorry; I forgot that our TSC maps to actual x86 Time Stamp Counter, not being some aggregated MI relatively high-precision time keeping thing. Does not look I can do much about it though: $ sysctl kern.timecounter kern.timecounter.fast_gettime: 1 kern.timecounter.tick: 2 kern.timecounter.choice: timebase(0) dummy(-1000000) kern.timecounter.hardware: timebase kern.timecounter.alloweddeviation: 5 kern.timecounter.stepwarnings: 0 kern.timecounter.tc.timebase.mask: 4294967295 kern.timecounter.tc.timebase.counter: 3224483187 kern.timecounter.tc.timebase.frequency: 41620907 kern.timecounter.tc.timebase.quality: 0 ./danfe