The correct clock fix in 4bsd

Dave Martindale dmmartindale at watcgl.UUCP
Sun Dec 4 18:41:37 AEST 1983


Ah, nostalgia.  I found that bug when first bringing up 4.1BSD two years
and some ago.  I had written a DUP11 driver, and to avoid getting an
overrun or underrun, interrupt requests had to be handled within 1
millisecond (at 9600 baud).  Even on an otherwise-unused machine, 
these happened consistently.  Looking at the data going by with a
serial analyzer showed that successful transmissions never lasted
more than a second.  So, what happens once a second?  Softclock has
a lot more work to do.  But how can softclock be running with
a priority which locks out interrupts from the device?  Aha! There
it is.  It only took an hour or so to find when the symptom was
"spending too long at high priority" rather than "clock loses time".

Somebody else must have found this very early too;  I think it was mentioned
in a printed list of bug fixes Berkeley sent out, and I know it's been
posted to USENET several times over the years.



More information about the Comp.unix.wizards mailing list