One-shot-oriented event timers management

Brandon Gooch jamesbrandongooch at gmail.com
Wed Sep 1 23:29:51 UTC 2010


On Wed, Sep 1, 2010 at 2:16 PM, Alexander Motin <mav at freebsd.org> wrote:
> Brandon Gooch wrote:
>> This latest patch causes an interrupt storm with the HPET timer on my
>> system. The machine took about 8 minutes to boot and bring me to a
>> login prompt. System interactivity (i.e. input from keyboard, output
>> on console) was fine, but after checking the output of `systat vmstat
>> -1`, I saw the interrupt rate on each HPET entry was over 120k!
>>
>> Can I provide any useful detail? Of course, test patches are always welcome :)
>
> I was able to reproduce alike storm in some situations.
>
> Try new version: http://people.freebsd.org/~mav/timers_oneshot7.patch

Definitely solved it!!!

Awesome, BTW, check out my C3 time:

# gnu-watch -n1 'sysctl dev.cpu | grep cx_usage'

Every 1.0s: sysctl dev.cpu | grep cx_usage              Wed Sep  1 17:56:31 2010

dev.cpu.0.cx_usage: 0.00% 0.03% 99.96% last 7159us
dev.cpu.1.cx_usage: 0.00% 0.00% 100.00% last 6343us

I've now seen my computer at it's lowest battery drain rate yet
(around 11000 mW) while "using" my system.

This just keeps getting better and better mav@, hope we see more testers soon :)

-Brandon


More information about the freebsd-hackers mailing list