Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Apr 1996 04:46:05 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        alk@Think.COM, nate@sri.MT.net
Cc:        hackers@freebsd.org
Subject:   Re: interrupts and such
Message-ID:  <199604061846.EAA06070@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> Why retain clk0?  It *does* seem a bit excessive.

>Both are necessary.  It's basically a 'sampling' problem.  You must
>sample faster than events are occuring to more accurately gain
>information about them.  Since the sheduling algorithm still uses clk0

More precisely, you must sample independently to obtain unbiased
information, and you may sample faster to obtain more accurate information.
The usual rtc0 rate is only slightly faster than the clk0 rate (128:100).
128 Hz is too slow to give accurate profiling information while you wait
on anything faster than 1 Mhz 8088, so a faster rtc0 rate of 1024 Hz is
used for profiling.  This is fast enough for a 10 MHz 8088 :-).

>With the current system, it's possible for a process to burn up just a
          old (BSD before 4.4Lite)
>tiny bit less than it's quantum at times but *never* have any of it show
>up in scheduling or profiling.  It could start the quantum in one
>routine, jump into the 'hog' routine, and return back before the quantum
>expires.  In this case, the scheduler and profiler would not have
>accurate statistics so therefore couldn't be counted on unless something
>better existed.  (Which we have now).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604061846.EAA06070>