Recompiling the kernel to increase SG_BIG_STUFF

Eduardo M. A. M. Mendes (mendes@mgconecta.com.br)
Fri, 10 Sep 1999 18:09:06 -0300

Hello
I wonder whether someone could help me to properly recompile
the kernel so that SG_BIG_BUFF (see below) is set to its maximum value.
I modified /usr/include/scsi/sg.h but it didn't work:

st: bufsize 32768, <-- it should be 130560 ----
wrt 30720, max buffers 4, s/g segs 16.
(scsi0) <Adaptec AIC-7850 SCSI host adapter> found at PCI 10/0
(scsi0) Narrow Channel, SCSI ID=7, 3/255 SCBs
(scsi0) Warning - detected auto-termination
(scsi0) Please verify driver detected settings are correct.
(scsi0) If not, then please properly set the device termination
(scsi0) in the Adaptec SCSI BIOS by hitting CTRL-A when prompted
(scsi0) during machine bootup.
(scsi0) Cables present (Int-50 YES, Ext-50 YES)
(scsi0) Downloading sequencer code... 412 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.10/3.2.4
<Adaptec AIC-7850 SCSI host adapter>

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.

I am not quite sure what SCSI backends mean.

Any help would be most appreciated.

Thanks a lot.

Ed

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