Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sleep sleeping too long
On Thu, 27 Mar 2008, Juan RP wrote:
> > tx:work$ time sleep 3 ; time sleep 5 ; time sleep 10
> > 6.81s real 0.00s user 0.01s system
> > 8.52s real 0.00s user 0.00s system
> > 25.84s real 0.01s user 0.00s system
>
> This behaviour might be seen with a "bad" timecounter, if I'm not wrong.
> Which of them are you using? (try sysctl kern.timecounter).
$ sysctl kern.timecounter
kern.timecounter.choice = clockinterrupt(q=0, f=100 Hz) TSC(q=-100,
f=1895564520 Hz) hpet0(q=2000, f=14318180 Hz) ACPI-Safe(q=900, f=3579545
Hz) lapic(q=-100, f=199687388 Hz) i8254(q=100, f=1193182 Hz)
dummy(q=-1000000, f=1000000 Hz)
kern.timecounter.hardware = hpet0
kern.timecounter.timestepwarnings = 0
I think this just started when I updated to HEAD within past few week or
so. I am pretty sure I didn't have problem before because I was recently
using:
sleep 2 ; xwd -out file.xwd
a lot recently. Just I noticed yesterday I was waiting a lot longer than
two seconds for xwd to beep to tell me it was ready. (sleep was working
fine a couple weeks ago for sure since I would have noticed this when I
used the above about 30 times.)
Home |
Main Index |
Thread Index |
Old Index