Re: SG_BIG_BUFF change?

Douglas Gilbert (dgilbert@interlog.com)
Sat, 30 Oct 1999 13:34:49 -0400


> 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-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/