Douglas Gilbert wrote:
>
> Some info on Linux sg buffer sizes. DMA (used by most but not the very low
> end SCSI adapters) requires continuous buffers. ["continuous" seen from the
> PCI/ISA bus.] Linux actively discourages drivers taking big continuous
> buffers. So sg takes 32 KB chunks (controlled by the SG_SCATTER_SZ define
> in sg.h) and builds a scatter gather list. The adapter dictates the maximum
> number of the scatter gather list elements which is further limited to
> 255 elements. So that makes the maximum size of sg's reserve buffer
> (or any single command) just under 8 Megabytes. You can double
> SG_SCATTER_SZ, rebuild sg and perhaps get that number up to just under
> 16 Megabytes.
>
Hi Douglas,
how large may SG_SCATTER_SZ be made? Are there any limits?
What side effects do happen if I increase it to e.g. 128KB ?
Bye
Oliver
-- Homepage: http://www.wolfsburg.de/~rauch sane-umax: http://www.wolfsburg.de/~rauch/sane/sane-umax.html xsane: http://www.wolfsburg.de/~rauch/sane/sane-xsane.html E-Mail: mailto:Oliver.Rauch@Wolfsburg.DE-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sat Jul 01 2000 - 13:33:54 PDT