Subject: Re: Heavy /dev/lpt use burdens system.
To: Brook Milligan <brook@biology.nmsu.edu>
From: M Graff <explorer@flame.org>
List: port-i386
Date: 09/10/1999 13:17:44
Brook Milligan <brook@biology.nmsu.edu> writes:

> I have been trying the interruptless driver, but it goes incredibly
> slowly.  Like a line a minute or something.  I was thinking of
> switching to the interrupt driver, but now I'm not so sure that will
> help.
> 
> What am I doing wrong?

What sort of printer?

The way the non-interrupt using driver works is to send a large chunk
of data every few clock ticks, then give up control for another clock
tick or two.

This lets other things jump in and do their thing, but it also limits
how much data you can send.  Generally, however, I've found the
non-interrupt driver to be far better than the interrupt driven one.

Perhaps there should be a middle ground?  Send as much data to the
printer as it will take, when it would block, enable interrupts and
give up control.  When an interrupt comes in, disable them again and
send stuff to the printer.

--Michael