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 15:08:27 -0500 (CDT)
"Jeremy C. Reed" <reed%reedmedia.net@localhost> wrote:
> > For instance, heavy I/O load.
> >
> > Step by step explanation:
> >
> > date - starts "date", prints time, exits
> > sleep 3 - starts "sleep", sleeps for 3 sec.
> > date - waits for I/O (may wait any time, 5 sec isn't unusually long),
> > starts "date", prints time, exits
>
>
> I don't see that in my case. (And system is very responsive.)
>
> Better example:
>
> 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).
--
Juan Romero Pardines - xtraeme at gmail|netbsd dot org
The NetBSD Project
Make your own NetBSD/x86 Live CD:
http://www.netbsd.org/~xtraeme/mklivecd/
Home |
Main Index |
Thread Index |
Old Index