> :>> > Another part is exception and interrupt handling.
> :>> Hmm. This can't be expressed in a benchmark, hardly. OTOH, if the
> :>> system keeps reasonable statistics, the effect of interrupt and
> :>> exception handling should be forseeable. I estimate this being less
> :>> than ~ 10 % of the total time on a modern machine.
> :>I guess it depends on whether or not you have to drive
> :>dumb ugly serial ports and such like. You can spend
> :>a lot of time handling interrupts with such devices.
> :>One paper at Usenix showed Linux on a Pentium dropping
> :>interrupts/data when driving a 115 Kbps serial port...
> The ISA bus cycles used to access the serial ports (in most cases)
> are slow, but not THAT slow. Any problem linux has with serial
> data overruns is readily attributable to long interrupt disables
> in other parts of the kernel
Yes, and ... ? I'm not attacking linux, BTW. A particular design
decision was made for reasonable reasons.
and the fact that the PC-standard
Quote:> serial chipset is braindead when it comes to on-chip hardware
The point of the article/presentation, as well as what to do
about it, centered on the the tradeoffs involved with various
strategies, including trading off time lost due to PIIC accesses
vs losing interrupts.
It has nothing to do with the processing
Quote:> time required to handle the serial interrupt.
"It has nothing to do with the CPU cycles required to handle
the interrupt." That isn't the same thing as "time". "Time"
is the time lost to an interrupted process when handling lots
of interrupts. There is a direct tradeoff in the PC required
between losing some interrupts and time lost, due to the
"braindead" design [your word above]. There is also a proposed
method which should minimize the number of lost interrupts while
still minimizing time impact. Of course, "real" computers
have hardware that minimizes overhead due to MP synchronization
and due to interrupts. But, most of us use PCs now, not "real"
computers, so, it is interesting that a software technique exists
which can extend the utility of the PC in demanding situations.
Quote:> PC serial ports are the exception rather then the rule.
I'm not sure what rule they are an exception to, but anybody
with a PC [almost everybody] who is surprised how "slow" their
PC is when driving a fast modem via a serial port may think such
behavior is the rule rather than the exception. Of course,
many people avoid using dumb PC serial ports for exactly that
I agree with somebody above that you can't really benchmark
this in userland, but, I consider "number of interrupts/sec
handled without losing interrupts" to be an interesting number
to know about a (hardware/software) system.