From owner-freebsd-current@FreeBSD.ORG Thu May 10 19:41:46 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CBE416A406; Thu, 10 May 2007 19:41:46 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id E884113C45A; Thu, 10 May 2007 19:41:45 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 374A71A3C1A; Thu, 10 May 2007 12:42:30 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0E14D513E1; Thu, 10 May 2007 15:41:44 -0400 (EDT) Date: Thu, 10 May 2007 15:41:44 -0400 From: Kris Kennaway To: Darren Reed Message-ID: <20070510194144.GA66798@xor.obsecurity.org> References: <20070510111326.GA94093@hub.freebsd.org> <20070510132153.A91312@fledge.watson.org> <20070510125445.GA5460@hub.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <20070510125445.GA5460@hub.freebsd.org> User-Agent: Mutt/1.4.2.2i Cc: Robert Watson , current@freebsd.org Subject: Re: Experiences with 7.0-CURRENT and vmware. 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: Thu, 10 May 2007 19:41:46 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 10, 2007 at 12:54:45PM +0000, Darren Reed wrote: > On Thu, May 10, 2007 at 01:28:16PM +0100, Robert Watson wrote: > >=20 > > On Thu, 10 May 2007, Darren Reed wrote: > >=20 > > >I'm using FreeBSD 7.0-CURRENT under vmware and there are a few issues. >=20 > Redirecting to current@... >=20 > > >First, time. hint.hw.acpi.disabled=3D"1" This appears to make _no_=20 > > >difference to time keeping on FreeBSD 7 and nor does it seem to have a= ny=20 > > >impact on ACPI being loaded. Do I need to recompile a new kernel with= out=20 > > >it or is there a new way to disable ACPI? > >=20 > > Have you tried hint.acpi.0.disabled=3D1 instead? This is what appears = in=20 > > acpi(4), and is what is used in various existing boot loader bits when = I=20 > > grep around. >=20 > In another reply it was "hint.apic.0.disabled=3D1". > My current loader.conf: >=20 > vm.kmem_size=3D536870912 > vm.kmem_size_max=3D536870912 > unset acpi_load acpi_load=3D"NO" to disable the module > hint.acpi.0.disabled=3D1 > hint.apci.0.disabled=3D1 dunno what apci does :) > hint.acpi.0.disabled=3D"1" This is the one that should work. Can you confirm that you see it in the loader environment by doing 'show'? > hint.apci.0.disabled=3D"1" > vfs.zfs.arc_max=3D402653184 >=20 > Booting with this gives me: > kernel: Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 >=20 > and ACPI enabled. >=20 > > >I should add that FreeBSD 6, with the same setting, is no better and t= hat=20 > > >I need to run ntpdate every 5-10 minutes via crontab in order to keep = good=20 > > >time (timekeeping is *really* bad.) In one instance, i was watching= =20 > > >"zpool iostat 1" and it appeared like the rows were muching up at a ra= te=20 > > >of 2 a second for a minute or so. How do I disable TSC timekeeping? = =20 > > >(NetBSD has this disabled by default in their kernels.) Or is there= =20 > > >somethign else I must do? > >=20 > > kern.timecounter.hardware: ACPI-fast > > kern.timecounter.choice: TSC(800) ACPI-fast(1000) i8254(0) dummy(-10000= 00) > >=20 > > I believe you can simply set kern.timecounter.hardware=3DAPCI-fast and = it=20 > > will do what you expect. An interesting question is why it selects wha= t is=20 > > arguably the wrong one; a post to current@ might help resolve that. >=20 > Hmm. >=20 > # sysctl kern.timecounter.hardware=3D"ACPI-fast" > kern.timecounter.hardware: ACPI-safe > sysctl: kern.timecounter.hardware: Invalid argument kern.timecounter.choice Kris --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGQ3V4Wry0BWjoQKURAmcxAKDokGbqp2OQQfTWiIkwwlRc0B+JdACfVayd cK5I4szF7lewC2xg2LcG3XU= =dA4d -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--