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

From: Jens Schweikhardt <schweikh_at_schweikhardt.net>
Date: Thu, 30 Jun 2005 22:35:41 +0200
John et al,

# > # 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.

Got it. And it works!

	Script started on Thu Jun 30 22:21:04 2005
	# /etc/rc.d/ntpd stop
	Stopping ntpd.
	# ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.1031.103
	30 Jun 22:21:38 ntpdate[615]: step time server 192.53.103.103 offset 0.605704 sec
	30 Jun 22:21:49 ntpdate[617]: adjust time server 192.53.103.103 offset -0.003176 sec
	# sysctl kern.timecounter.hardware=i8254
	kern.timecounter.hardware: TSC -> i8254
	# ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103
	30 Jun 22:22:27 ntpdate[629]: adjust time server 192.53.103.103 offset -0.008593 sec
	30 Jun 22:22:38 ntpdate[631]: adjust time server 192.53.103.103 offset -0.006727 sec
	# ntpdate 192.53.103.103; sleep 10; ntpdate 192.53.103.103
	30 Jun 22:22:48 ntpdate[632]: adjust time server 192.53.103.103 offset -0.004264 sec
	30 Jun 22:22:59 ntpdate[634]: adjust time server 192.53.103.103 offset -0.001882 sec
	# vmstat -i
	interrupt                          total       rate
	irq1: atkbd0                         360          1
	irq12: psm0                         4114         22
	irq13: npx0                            1          0
	irq14: ata0                           68          0
	irq15: ata1                           82          0
	irq18: em0                            77          0
	irq24: ahd0                         4232         23
	irq25: ahc0                           15          0
	lapic0: timer                     364343       1980
	Total                             373292       2028

And when booting without kern.smp.disabled=1

	interrupt                          total       rate
	irq1: atkbd0                         462          2
	irq12: psm0                          188          0
	irq13: npx0                            1          0
	irq14: ata0                           68          0
	irq15: ata1                           82          0
	irq18: em0                            38          0
	irq24: ahd0                         4553         19
	irq25: ahc0                           15          0
	lapic0: timer                     456392       1992
	lapic1: timer                     436538       1906
	Total                             898337       3922
	Script done on Thu Jun 30 22:23:35 2005

If you could get this fix past re_at_ for 6.0 that would be nice. Thanks
John and Doug, for all your support in tracking this down!

Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
Received on Thu Jun 30 2005 - 18:35:56 UTC

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