Re: Timekeeping hosed by factor 3, high lapic[01] interrupt rates

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 30 Jun 2005 13:32:47 -0400
On Wednesday 29 June 2005 06:01 pm, Jens Schweikhardt wrote:
> John et al,
>
> # Well, that's certainly weird.  I got those types of numbers (~40 secs)
> when I # was using the broken patch.  Without any patches at all, my
> adjustments were # -100 seconds, not +40.  There probably should be at
> least some difference # between unpatched and patched.  For the sake of my
> sanity, can you please # build a GENERIC kernel from scratch without any
> patches and capture the above # output
>
>
> 	(last cvsup about 2 weeks ago)
> 	Script started on Wed Jun 29 23:45:39 2005
> 	# uname -a
> 	FreeBSD hal9000.schweikhardt.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Wed
> Jun 29 23:32:05 CEST 2005    
> toor_at_hal9000.schweikhardt.net:/share/HEAD/obj/share/HEAD/src/sys/GENERIC 
> i386 # /etc/rc.d/ntpd stop
> 	Stopping ntpd.
> 	# ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103
> 	29 Jun 23:46:28 ntpdate[620]: adjust time server 192.53.103.103 offset
> -0.408871 sec 29 Jun 23:46:39 ntpdate[622]: adjust time server
> 192.53.103.103 offset -0.407218 sec # sysctl
> kern.timecounter.hardware=i8254
> 	kern.timecounter.hardware: TSC -> i8254
> 	# ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103
> 	29 Jun 23:47:01 ntpdate[624]: step time server 192.53.103.103 offset
> 1.356553 sec 29 Jun 23:48:02 ntpdate[626]: step time server 192.53.103.103
> offset 50.226572 sec # sysctl kern.timecounter.hardware=TSC
> 	kern.timecounter.hardware: i8254 -> TSC
> 	# ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103
> 	29 Jun 23:48:10 ntpdate[628]: step time server 192.53.103.103 offset
> 3.169196 sec 29 Jun 23:48:21 ntpdate[630]: adjust time server
> 192.53.103.103 offset 0.001696 sec Script done on Wed Jun 29 23:48:31 2005

Hmm, about 50 seconds there.

> # and then apply http://www.FreeBSD.org/~jhb/patches/i8254_lapic.patch
> # and rebuild and capture the same output again?
>
> 404. There's only a lapic_timer.patch dated 14-Jan-2005 20:29...
> Please don't lose your sanity :-)

Ah, uploading it now.

-- 
John Baldwin <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Thu Jun 30 2005 - 15:43:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:37 UTC