From owner-freebsd-smp Thu Jun 21 6:51: 1 2001 Delivered-To: freebsd-smp@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 99E8C37B403; Thu, 21 Jun 2001 06:50:58 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id XAA02953; Thu, 21 Jun 2001 23:50:54 +1000 Date: Thu, 21 Jun 2001 23:49:04 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Martin Blapp Cc: smp@FreeBSD.ORG, Brad Karp , phk@FreeBSD.ORG Subject: RE: clock speedup on SMP boxes In-Reply-To: <20010621144914.P766-100000@levais.imp.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 21 Jun 2001, Martin Blapp wrote: > Just gettimeofday() produces 8sec time drifting now. No need > to use poll() in our little programm I sent previously. > > There is no time drifting if we used a 100% load programm with > just poll(). > > Very strange. Do you have some idea ? From clock.c in -current: | #ifdef APIC_IO | #define lapic_irr1 ((volatile u_int *)&lapic)[0x210 / 4] /* XXX XXX */ | /* XXX this assumes that apic_8254_intr is < 24. */ | (lapic_irr1 & (1 << apic_8254_intr)))) | #else | (inb(IO_ICU1) & 1))) | #endif Maybe apic_8254_intr is not < 24. I think the second XXX comment has rotted in -current, but it still applies in RELENG_4. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message