From owner-freebsd-current@FreeBSD.ORG Wed Jun 15 19:53:29 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 821BB106566B; Wed, 15 Jun 2011 19:53:29 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from inbound01.jnb1.gp-online.net (inbound01.jnb1.gp-online.net [41.154.0.151]) by mx1.freebsd.org (Postfix) with ESMTP id 16D4A8FC18; Wed, 15 Jun 2011 19:53:28 +0000 (UTC) Received: from [41.154.88.19] (helo=clue.co.za) by inbound01.jnb1.gp-online.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1QWvkD-0001ep-OL; Wed, 15 Jun 2011 21:27:18 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1QWvkC-0001QH-Cj; Wed, 15 Jun 2011 21:27:16 +0200 Message-Id: To: freebsd-current@FreeBSD.org From: "Ian FREISLICH" X-Attribution: BOFH Date: Wed, 15 Jun 2011 21:27:16 +0200 Cc: Jung-uk Kim Subject: Re: Time keeping Issues with the low-resolution TSC timecounter X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 19:53:29 -0000 > > The problem I noticed first is that it takes unusually long until a > > key press is repeated. With the default eventtimer (HPET) it seems > > to take about 4s, which can be slightly improved by switching to > > i8254. > > > > The "error beep" seems to take longer than usual, too, > > and the system "feels sluggish" in general. > > > > An effect that is easier to measure is that the system is unable > > to properly keep the time. Again the problem is less severe when > > using i8254 instead of HPET: > > [SNIP] > > First of all, please do not mix timecounter issues with eventtimer. > They are not directly related. > > Can you please show me verbose boot messages *without* your patch? > Does "sysctl kern.timecounter.hardware=HPET" help *without* touching > eventtimers? I have the same issue with my system (Atom N270). The effect that I see is about 29 wall clock seconds are recorded as 1 system second. I had do something similar to the OP to make my system useable since it doesn't seem possible to influence timecounter choice at boot time. Ian -- Ian Freislich