Re: Mustek 1200SP

Ian Tester (iteste01@postoffice.csu.edu.au)
Fri, 13 Feb 1998 00:49:29 +1100 (EST)

On Thu, 12 Feb 1998, Hans Christian Saustrup wrote:

> On Wed, 11 Feb 1998 becka@rz.uni-duesseldorf.de wrote:
>
> > This is due to Win using a very large SCSI-Buffer (a few MB), while Linux
> > by default only uses 32kB. You can increase that to about 128kB as described
> > in some README.
>
> Hmm.. I've checked the /usr/src/linux/drivers/scsi directory, a bunch of
> howto's and #linux on ircnet, and I still can't find the place to change
> the buffersize? Anyone? :-)
>

man sane-scsi

...

To keep scanning times to a minimum, it is strongly recom-
mended to use a large buffer size for the generic SCSI
driver. By default, Linux uses a buffer of size 32KB.
This works, but for many cheaper scanners this causes
scanning to be slower by about a factor of four than when
using a size of 127KB. Linux defines the size of this
buffer by macro SG_BIG_BUFF in header file
/usr/include/scsi/sg.h. Unless a system is seriously
short on memory, it is recommended to increase this value
to the maximum legal value of 128*1024-512=130560 bytes.
After changing this value, it is necessary to recompile
both the kernel (or the SCSI generic module) and the SCSI
backends.

bye

8<--------8<--------8<--------8<--------8<--------8<--------8<--------
iteste01@postoffice.csu.edu.au \|\ Ian Tester
http://athene.mit.csu.edu.au/~iteste01/ \|\ *8)#

LINUX: because geeks will find a way

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com