From owner-freebsd-stable@FreeBSD.ORG Sun May 20 19:11:42 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2267716A400 for ; Sun, 20 May 2007 19:11:42 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id A379E13C44B for ; Sun, 20 May 2007 19:11:41 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l4KJBNk9037420; Mon, 21 May 2007 05:11:23 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l4KJBNmA037419; Mon, 21 May 2007 05:11:23 +1000 (EST) (envelope-from peter) Date: Mon, 21 May 2007 05:11:23 +1000 From: Peter Jeremy To: Victor Balada Diaz Message-ID: <20070520191123.GR1164@turion.vk2pj.dyndns.org> References: <20070520162630.GA1481@pato.euesrg02.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JlJsEFsx9RQyiX4C" Content-Disposition: inline In-Reply-To: <20070520162630.GA1481@pato.euesrg02.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.15 (2007-04-06) Cc: stable@freebsd.org Subject: Re: RTC clock doesn't generate interrupts X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 19:11:42 -0000 --JlJsEFsx9RQyiX4C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-20 18:26:30 +0200, Victor Balada Diaz wrote: >I have a server with FreeBSD 6.2 that is not generating RTC IRQs. >When the system boots everything it's working fine and I get 128 >interrupts per second but after a few hours the system starts >losing RTC interrupts. If I enable powerd it happens much faster >than without it. The RTC has a "feature" that if you ever lose an RTC interrupt (because the interrupt handler wasn't called fast enough), you don't get any more interrupts because the RTC knows it has an interrupt pending and so doesn't generate any more interrupts. I have also bumped into this problem whilst trying to work around a problem with a TurionX2 CPU. I just got the correct fix to work and ignored the work-around. I did find that you can restart the RTC interrupts by setting machdep.adjkerntz (you can leave the value the same, it's the assignment that's important). Enabling powerd will reduce the CPU clock and so exacerbate any problem you have with excessive interrupt latency. I can't suggest what might be the underlying cause of that latency. --=20 Peter Jeremy --JlJsEFsx9RQyiX4C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGUJ1b/opHv/APuIcRAjzsAJ9mMWcSthVo6xQk73zS86qkioweLQCdEU7W EJ3SzUS9wLgDzshSIctO7bE= =Bbd9 -----END PGP SIGNATURE----- --JlJsEFsx9RQyiX4C--