Losing interrupts?

Jan Herder herder at myab.se
Wed Oct 5 01:59:30 AEST 1988


In article <1900 at van-bc.UUCP> sl at van-bc.UUCP (pri=-10 Stuart Lynne) writes:
<However we take note that SCO mysteriously looses far less than Microport.
<The reason of course is that Microport spends a *lot* more time at spl7 than
<SCO does. This exacerbates the problem that you mention.  
<
<In my experience system interrupt overhead and time lost through use of spl7
<is the primary cause of lost interrupts. At least when they are lost due to
<a large influx of them.
<
<SCO apparently has spent much time and effort in finding all places where
<spl7 is needed and *not* needed and has reduced the amount of time when they
<lock them out. 
<
<For example with the tty drivers, try the following:
<
<	stty 19200 -ixoff -echo; cat > /tmp/test
<
<then from your terminal emulator program dump about 100kb of data to the
<system. 

There are ways to dealing with this problem, it's called pseudo dma.
If you have dumb serial port, you make a very small interrupt ruotine
wich reads the uart and puts the characters in a big circular list, which
can be read at a later time. If you make sure to never lock out this small
interrupt routine you don't loose any characters. 

This technic has been used whith DZ ports on VAXen and serial ports on SUNs.
The *RIGHT* way to do it is of course to get a better serial card.

-- 
Jan Herder, MYAB Sweden                    |  Phone: +46 31 18 75 12
Internet: herder at myab.se                   |  Fax:   +46 31 18 28 42
UUCP: 	  uunet!enea!chalmers!myab!herder  |  Address: Dr. Forseliusg 21
ARPA:	  herder%myab.se at uunet.uu.net      |           413 26 Gothenburg



More information about the Comp.unix.microport mailing list