[Top] [All Lists]

Re: clock skew and ethernet timeouts

To: (Mark Salter)
Subject: Re: clock skew and ethernet timeouts
From: Ralf Baechle <>
Date: Fri, 15 Aug 1997 01:15:22 +0200 (MET DST)
In-reply-to: <> from "Mark Salter" at Aug 13, 97 05:09:32 pm
> I also noticed that the linux time of day clock falls behind
> real time whenever these timeouts occur. I decided to take a
> look at this side of the problem and discovered that interrupts
> are being turned off for extended periods of time. I modified
> the timer interrupt handler to print a message if it detects
> a missed system tick. Sure enough, every ethernet timeout is
> accompanied by a message coming from the timer interrupt. The
> message indicates that the timer interrupt was held off for
> as much as 45ms!

I've never seen these problems in my configurations.  However I've fixed
a couple of interrupt realted things which I'll commit into the CVS
as soon as I'm in Mountain View.  One of these, a console bug might
actually have been the cause of the extreme long interrupt disable time
you have seen.

There are more thing which need to be reworked with resprect to interrupts.
For example cache flushing turns interrupts off for sometimes several
thousand cycles even though this is only required for certain buggy CPUs
like the R4600 v1.x.  And even there are better workarounds.  General
rule about cli():  Think about it if you really need it.  Then think again
about it.  If you're finished wnd still think cli() might be a good solution,
then think once again about it ...

For me the "most wanted - fix on sight" bug is currently a memory corruption
problem.  Other than that I was able to compile >92mb RPM binaries several
times in a row.  It's just that that memory corruption problem corrupts
disk data structures in memory which might be written back later ...


<Prev in Thread] Current Thread [Next in Thread>