sane-project-website/old-archive/2000-07/0007.html

169 wiersze
6.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: scsi command queuing</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
<META NAME="Subject" CONTENT="Re: scsi command queuing">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: scsi command queuing</H1>
<!-- received="Sun Jul 2 14:31:21 2000" -->
<!-- isoreceived="20000702213121" -->
<!-- sent="Sun, 02 Jul 2000 23:47:57 +0200" -->
<!-- isosent="20000702214757" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: scsi command queuing" -->
<!-- id="395FB88D.545E215B@wolfsburg.de" -->
<!-- inreplyto="395F7773.68AB4289@satzbau-gmbh.de" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20scsi%20command%20queuing&In-Reply-To=&lt;395FB88D.545E215B@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Jul 02 2000 - 14:47:57 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0008.html">Didier Galland: "RE: can't recognize UMAX-VistaS6 on AHA1520b"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0006.html">Oliver Rauch: "Re: can't recognize UMAX-VistaS6 on AHA1520b"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0004.html">abel deuring: "Re: scsi command queuing"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0015.html">abel deuring: "Re: scsi command queuing"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#7">[ date ]</A>
<A HREF="index.html#7">[ thread ]</A>
<A HREF="subject.html#7">[ subject ]</A>
<A HREF="author.html#7">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
abel deuring wrote:
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I hope it too :) But, considering the discussion in this thread, it
</EM><BR>
<EM>&gt; seems that very short delays between two SCSI commands or huge buffers
</EM><BR>
<EM>&gt; are for many scanners the only ways to avoid scan head stops.
</EM><BR>
<EM>&gt;
</EM><BR>
<P>The problem is that with large buffers and driver (not adapter) queue commands
<BR>
the scanhead does stop when the size of the scanner internal buffer is transmitted.
<BR>
So it looks like a response time problem of the low level scsi driver.
<BR>
<P><P><EM>&gt;
</EM><BR>
<EM>&gt; DBG(1, &quot;issue: EAGAIN - cannot queue SCSI command. &quot;
</EM><BR>
<EM>&gt; &quot;Trying again later.\n&quot;);
</EM><BR>
<EM>&gt;
</EM><BR>
<P>No such mesages.
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I think that at least some choice of the buffer size should be left to
</EM><BR>
<EM>&gt; the user: You can never know what kind of programs and how many of them
</EM><BR>
<EM>&gt; somebody might run at the same time on her/his Linux box. and which
</EM><BR>
<EM>&gt; priority the scanner usage has: If the backend fights too hard for
</EM><BR>
<EM>&gt; memory, this might cause a serious slowdown of other, perhaps more
</EM><BR>
<EM>&gt; important, programs, because their memory content is written to the swap
</EM><BR>
<EM>&gt; disk.
</EM><BR>
<P>Yes.
<BR>
<P><EM>&gt;
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; But &quot;memory policies&quot; aside, you are right, we must find a way to avoid
</EM><BR>
<EM>&gt; scan head stops. But I don't see many options without messing in the
</EM><BR>
<EM>&gt; Linux kernel. At least, I don't see any way to speed things more up than
</EM><BR>
<EM>&gt; to use command queueing and more or less big buffers without asking for
</EM><BR>
<EM>&gt; faster kernel responses or new ioctls, like the idea to implement
</EM><BR>
<EM>&gt; something similar to piping for the handling of really large SCSI read
</EM><BR>
<EM>&gt; commands. (And the latter can be really dangerous: If we have a scanner
</EM><BR>
<EM>&gt; that is unable to do a SCSI disconnect, and a disk, to which the image
</EM><BR>
<EM>&gt; data should be written, connected to the same SCSI bus, there no way to
</EM><BR>
<EM>&gt; get access to the disk while the scan is running.)
</EM><BR>
<EM>&gt;
</EM><BR>
<P>I already played a bit with some kernel options/changes.
<BR>
So I tested forced sync and forced command queueing
<BR>
(the scanner says both are not possible but some devices
<BR>
that the can not do this although the really can), but this
<BR>
did not change anything as far as I tested yet.
<BR>
<P>So the next thing will be to play around with the sg or the low level scsi driver.
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><P><PRE>
--
Homepage: <A HREF="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</A>
sane-umax: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</A>
xsane: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@Wolfsburg.DE?Subject=Re:%20scsi%20command%20queuing&In-Reply-To=&lt;395FB88D.545E215B@wolfsburg.de&gt;">Oliver.Rauch@Wolfsburg.DE</A>
<P><P><P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20scsi%20command%20queuing&In-Reply-To=&lt;395FB88D.545E215B@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0008.html">Didier Galland: "RE: can't recognize UMAX-VistaS6 on AHA1520b"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0006.html">Oliver Rauch: "Re: can't recognize UMAX-VistaS6 on AHA1520b"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0004.html">abel deuring: "Re: scsi command queuing"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0015.html">abel deuring: "Re: scsi command queuing"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#7">[ date ]</A>
<A HREF="index.html#7">[ thread ]</A>
<A HREF="subject.html#7">[ subject ]</A>
<A HREF="author.html#7">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sun Jul 02 2000 - 14:32:17 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>