From owner-freebsd-hackers Thu Aug 30 6:42:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from imo-m09.mx.aol.com (imo-m09.mx.aol.com [64.12.136.164]) by hub.freebsd.org (Postfix) with ESMTP id E71F537B403 for ; Thu, 30 Aug 2001 06:42:38 -0700 (PDT) (envelope-from Bsdguru@aol.com) Received: from Bsdguru@aol.com by imo-m09.mx.aol.com (mail_out_v31_r1.4.) id j.14b.2a17a2 (30961); Thu, 30 Aug 2001 09:41:48 -0400 (EDT) From: Bsdguru@aol.com Message-ID: <14b.2a17a2.28bf9c9c@aol.com> Date: Thu, 30 Aug 2001 09:41:48 EDT Subject: Re: Clock speedup on 4.X FreeBSD SMP and serverworks chipset To: mb@imp.ch Cc: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: AOL 5.0 for Windows sub 138 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In a message dated 8/30/01 7:44:23 AM Eastern Daylight Time, mb@imp.ch writes: > Searching the freebsd mailinglists I have seen that you also suffering > under this problem on 4.X. STABLE: > > I have isolated the problem to be due reading the time with microtime() > > Execute this programm: > > #include > #include > #include > > int > main(void) > { > > for(;;) { > struct timeval tv; > struct timezone tz; > gettimeofday(&tv, &tz); > } > return (0); > } > > and you will see a 10% timedrift. For 20 seconds, I get 2 second > time speedup. > > You should not see this time drift if you remove the gettimeofday() > syscall of the programm. > > If someone has a machine where he can install CURRENT, or has a machine > with ServerWorks Chipset and SMP, is it possible that he can activate > ACPI and test it again ? > > There is already a PR, PR kern/30135. > maybe the millions of system calls to the time function has something to do with the effect? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message