From owner-freebsd-questions Wed May 16 11:29: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from MPI-Softtech.Com (mpi.mpi-softtech.com [208.60.120.177]) by hub.freebsd.org (Postfix) with ESMTP id 4F94637B42C for ; Wed, 16 May 2001 11:29:05 -0700 (PDT) (envelope-from dleimbac@MPI-Softtech.Com) Received: from mpi.mpi-softtech.com (mpi.mpi-softtech.com [208.60.120.177]); by MPI-Softtech.Com (8.9.3/8.9.3/MPI-Softtech/evision: 1.3 $) with SMTP; id NAA22169 for ; Wed, 16 May 2001 13:29:03 -0500 (CDT) Message-Id: <200105161829.NAA22169@MPI-Softtech.Com> Date: Wed, 16 May 2001 13:29:03 -0500 (CDT) From: Dave Leimbach Reply-To: Dave Leimbach Subject: Huge difference in kernel reconfig. To: questions@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: aH0fj5+3KC8xmeWwPhuLTg== X-Mailer: dtmail 1.3.0 CDE Version 1.3 SunOS 5.7 sun4u sparc Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I reconfigured my kernel from the default which has apm turned on to disabling apm on my desktop at home and I got a huge performance improvement in my code which uses gettimeofday calls. Needless to say each call went from 6.7xx usec to .7 usec per gettimeofday. (almost 10x faster) The difference is whether or not you use TSC and apm enabled = TSC disabled. Now the question is why can't apm and TSC co-exist? they do on other platforms. It also means if I were to use apm in a place where its truly useful/needed I cannot use TSC. Is this a design constraint? Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message