lkml.org 
[lkml]   [1999]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectPATCH: SCSI generic/big buffer
Date
Hi,

with everyone having a scanner nowadays, and memory sizes continuously
growing, I don't think that the default buffer size in sg.h is any longer
apprropriate. Since I don't have a better solution, I just set it to the
maximum size (does this limit still exist?).

And I think cdwrite is outdated and not maintained anymore, so I replaced
it with a pointer to cdrecord.

--- linux/Documentation/Configure.help.orig Fri Jan 22 07:45:06 1999
+++ linux/Documentation/Configure.help Fri Jan 22 08:01:10 1999
@@ -3543,12 +3543,17 @@
CDROMs or tapes, say Y here. These won't be supported by the kernel
directly, so you need some additional software which knows how to
talk to these devices using the SCSI protocol. For CD-writers, you
- would need the program cdwrite, available via FTP (user: anonymous)
- from ftp://metalab.unc.edu/pub/Linux/utils/disk-management; for
- other devices, it's possible that you'll have to write the driver
- software yourself, so have a look at the SCSI-HOWTO and at the
- SCSI-Programming-HOWTO, both available via FTP (user: anonymous) in
+ would need the program cdrecord, available via FTP (user: anonymous)
+ from ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/; for other devices,
+ it's possible that you'll have to write the driver software yourself,
+ so have a look at the SCSI-HOWTO and at the SCSI-Programming-HOWTO,
+ both available via FTP (user: anonymous) in
ftp://metalab.unc.edu:/pub/Linux/docs/HOWTO.
+
+ This driver allocates a buffer of 130560 bytes (the current maximum).
+ If you don't need such a large buffer you can save memory by setting
+ the value of SG_BIG_BUFF in include/scsi/sg.h to a smaller value,
+ eg. 32768.

If you want to compile this as a module ( = code which can be
inserted in and removed from the running kernel whenever you want),
--- linux/include/scsi/sg.h Fri Jan 22 07:44:37 1999
+++ linux/include/scsi/sg.h.orig Fri Jan 22 07:43:42 1999
@@ -42,6 +42,6 @@
#define SG_MAX_QUEUE 4 /* maximum outstanding request, arbitrary, may be
changed if sufficient DMA buffer room available */

-#define SG_BIG_BUFF 130560
+#define SG_BIG_BUFF 32768

#endif

hjb
--
"Every use of Linux is a proper use of Linux."
-- John "Maddog" Hall, Keynote at the Linux
Kongress in Cologne

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.034 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site