From owner-freebsd-arm@FreeBSD.ORG Sat Sep 20 23:46:13 2014 Return-Path: Delivered-To: freebsd-arm@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 A2A5551C for ; Sat, 20 Sep 2014 23:46:13 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74EEFA62 for ; Sat, 20 Sep 2014 23:46:13 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XVULz-000Elq-IU; Sat, 20 Sep 2014 23:46:11 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s8KNkAUL017146; Sat, 20 Sep 2014 17:46:10 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+5VMaY1nOrUNuTiTGyRGF4 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: FreeBSD-11.0-CURRENT on ARM: performance and load average From: Ian Lepore To: Maxim V FIlimonov In-Reply-To: <1989123.lKm0QJoZES@quad> References: <7351653.A2UeEk9AA3@quad> <1411241048.66615.148.camel@revolution.hippie.lan> <1989123.lKm0QJoZES@quad> Content-Type: text/plain; charset="us-ascii" Date: Sat, 20 Sep 2014 17:46:09 -0600 Message-ID: <1411256769.66615.155.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 23:46:13 -0000 On Sun, 2014-09-21 at 01:04 +0400, Maxim V FIlimonov wrote: > On Saturday 20 September 2014 13:24:08 Ian Lepore wrote: > > Since it's happening only on that hardware, there's a good chance the > > problem is in the allwinner a10/a20 clock driver, not in the general > > eventtimer code. In fact, looking at the code it appears that a > > divide-by-16 is being set in the hardware, but not accounted for when > > setting the frequency of the eventtimer. > > > > Hmm, it should affect the timecounter too, in which case you'd see > > time-of-day advancing 16x too fast. If ntpd is running it would need to > > step the clock pretty frequently, which would show up in syslog. > > > > I'm running FreeBSD-current on the board right now, the time is just fine. > > > I don't have hardware to test on, please see if the attached patch makes > > a difference. > > > > Well, it did: with the patch applied, the time ran about 60 times as fast as > it should have. I didn't notice any changes with load average, though: maybe > it's because I forgot to turn that sysctl setting I set before back to 0. > > wbr, Maxim Filimonov > che@bein.link 60 times as fast doesn't make much sense for changing a divisor to 16. Without that patch, what is the output of sysctl kern.eventtimer sysctl kern.timecounter If you repeatedly do "ntpdate -q " every 15 seconds for a couple minutes, does the offset stay pretty much the same? (like no big changes in the first two decimal places) Don't use a server like pool.ntp.org where you might get a different server every time, instead do "host pool.ntp.org" and pick one of the IPs and use it every time. -- Ian