Re: too short/too long (sys/kern_tc.c)

From: Eric Anderson <anderson_at_freebsd.org>
Date: Tue, 27 Feb 2007 10:32:50 -0600
On 02/27/07 10:10, Eric Anderson wrote:
> On 02/27/07 08:25, Etienne Robillard wrote:
>> Had this problem for a while.. It seems
>> to have disappear when booting with acpi enabled??
> 
> Oh - jsut realized it wasn't loaded (etherbooting doesn't load the 
> modules, and I've been spoiled by having it autoload).  Adding to my 
> kernel now.

Indeed adding ACPI fixed that problem, and also increased the processing 
performance (for my limited app test) of my qemu machine by around a 
factor of 5x.


>> Dunno what may cause your bug, however I still gets
>> some of this:
>>
>> calcru: runtime went backwards from 37004444177421276
>> usec to 18502193351497934 usec for pid 81026 (zsh)
>>
>> FreeBSD flick 7.0-CURRENT FreeBSD 7.0-CURRENT #13: Mon
>> Jan 29 14:05:04 EST 2007    
>> root_at_flick:/usr/src/sys/i386/compile/CURRENT  i386
>>
>>
>> Are both bugs described correlated? 
> 
> I don't know for sure.  Seems that slamming the CPU to 100% busy makes 
> the messages occur much less.


I'm still getting those, but they are far less annoying.

> Yikes!  Look at this:
> 
> # vmstat -i
> interrupt                          total       rate
> irq0: clk                        8299985        116
> irq1: atkbd0                          67          0
> irq4: sio0                          5325          0
> irq8: rtc                        1065804         14
> irq11: re0                         73060          1
> irq14: ata0                           15          0
> irq15: ata1                           58          0
> Total                            9444314        132
> 
> Maybe acpi will help that too.

Changed it:


# vmstat -i
interrupt                          total       rate
irq1: atkbd0                           7          0
irq4: sio0                          2642          8
irq11: re0 acpi0                    9607         30
irq14: ata0                           15          0
irq15: ata1                           58          0
cpu0: timer                       303104        959
Total                             315433        998



>> TIA,
>> Etienne
>>
>>
>> --- Eric Anderson <anderson_at_freebsd.org> wrote:
>>
>>> When I boot a -CURRENT box with boot verbose enabled
>>> inside qemu, I see
>>> one of these messages about every second:
>>>
>>> 15.f68c5ee76faebe10 too short
>>> 16.0f822e13092c5580 too long
>>>
>>> I can obviously whack the printf's, but what's the
>>> 'right way' to fix
>>> this?  Set HZ to something? Pick a different timer?
>>>
>>> kern.timecounter.tick: 1
>>> kern.timecounter.choice: TSC(800) i8254(0)
>>> dummy(-1000000)
>>> kern.timecounter.hardware: TSC
>>> kern.timecounter.nsetclock: 2
>>> kern.timecounter.ngetmicrotime: 80036
>>> kern.timecounter.ngetnanotime: 0
>>> kern.timecounter.ngetbintime: 0
>>> kern.timecounter.ngetmicrouptime: 29057
>>> kern.timecounter.ngetnanouptime: 109
>>> kern.timecounter.ngetbinuptime: 488
>>> kern.timecounter.nmicrotime: 1708
>>> kern.timecounter.nnanotime: 11
>>> kern.timecounter.nbintime: 1719
>>> kern.timecounter.nmicrouptime: 687
>>> kern.timecounter.nnanouptime: 0
>>> kern.timecounter.nbinuptime: 3734
>>> kern.timecounter.stepwarnings: 0
>>> kern.timecounter.tc.i8254.mask: 4294967295
>>> kern.timecounter.tc.i8254.counter: 7769
>>> kern.timecounter.tc.i8254.frequency: 1193182
>>> kern.timecounter.tc.i8254.quality: 0
>>> kern.timecounter.tc.TSC.mask: 4294967295
>>> kern.timecounter.tc.TSC.counter: 809045640
>>> kern.timecounter.tc.TSC.frequency: 1995115260
>>> kern.timecounter.tc.TSC.quality: 800
>>> kern.timecounter.smp_tsc: 0
>>>
>>> FreeBSD  7.0-CURRENT FreeBSD 7.0-CURRENT #3: Fri Feb
>>> 23 09:28:20 CST
>>> 2007 i386
>>>
>>> Eric
>>>
>>>
>>> _______________________________________________
>>> freebsd-current_at_freebsd.org mailing list
>>>
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>>> To unsubscribe, send any mail to
>>> "freebsd-current-unsubscribe_at_freebsd.org"
>>>
>>
>> ----
>> Etienne Robillard
>> 7680 de jouvence, La Plaine
>> J7M-2K9, Québec
>> Telephone: 450-478-5026
>> Yahoo Messenger ID: granted14
>> Skype ID: incidah
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com 
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue Feb 27 2007 - 15:32:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC