[7463] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: SG_BIG_BUFF change?

daemon@ATHENA.MIT.EDU (Douglas Gilbert)
Sat Oct 30 13:32:04 1999

Message-ID: <381B2C39.B1B323B9@interlog.com>
Date:   Sat, 30 Oct 1999 13:34:49 -0400
From:   Douglas Gilbert <dgilbert@interlog.com>
MIME-Version: 1.0
To:     linux-kernel@vger.rutgers.edu, linux-scsi@vger.rutgers.edu
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

> Wouldn't 
>
>       echo 131072 > /proc/sys/kernel/sg-big-buff
>
> work?
>
> -- Juha

No it won't because /proc/sys/kernel/sg-big-buff is not
writeable. Furthermore it is only visible when the sg
driver is compiled into the kernel (i.e. it is not a
module).

If you are talking about an sg (scsi generic) driver from
and including 2.2.6 then you can edit the
DEF_RESERVED_SIZE define in ../linux/include/scsi/sg.h
to a larger value. Then rebuild the kernel/module.

And if you are using a bleeding edge sg driver then you
can write:
echo 131072 > /proc/scsi/sg/def_reserved_size
to obtain the intended effect.

Doug Gilbert

> -----Original Message-----
> From: casler, heather [mailto:casler_heather@emc.com]
> Sent: Saturday, 30 October 1999 09:40
> To: 'redhat-list'; 'linux-kernel'; 'linux-scsi'
> Subject: SG_BIG_BUFF change?
> 
> 
> Hi Folks,
> I am hoping someone can help me out.  I am trying to change the 
> value of the
> SG_BIG_BUFF in /usr/include/scsi/sg.h to something greater than 32768
> (preferably 131072).  I've fully recompiled the kernel (make dep; 
> make clean
> install modules modules_install) on v2.2.9, v2.2.9, and v2.2.5, 
> rebooted and
> the cat /proc/sys/kernel/sg-big-buff value still says 32768.
> How can I change this value and make it show up to what I changed it to?
> TIA!
> Heather

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post