linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Where is max_scsi_adapter_scatter_gather_elements found in the Linux source code?
@ 2004-09-21 17:05 Nate Iverson
  2004-09-22  4:44 ` Douglas Gilbert
  0 siblings, 1 reply; 3+ messages in thread
From: Nate Iverson @ 2004-09-21 17:05 UTC (permalink / raw)
  To: linux-scsi


> I'm resending this becuase I missed the http links are treated as SPAM thing.
> 
> In en.tldp.org/HOWTO/SCSI-Generic-HOWTO/dio.html it says 
> 
> Notes
> 
> [1]	Unfortunately that setup time is large enough in some versions of the lk 2.4 series to adversely impact direct IO performance. Also memory malloc()-ed in the user space tends to be made up of discontinuous pages seen from the SCSI adapter. This requires the sg driver to build heavily splintered scatter gather lists which is less than desirable. This limits the maximum transfer size to [(max_scsi_adapter_scatter_gather_elements - 1) * PAGE_SIZE]. [This is a _different_ scatter gather mechanism to that which the user sees in the sg interface based on iovec.]
> 
> 
> I have grepped through the Linux source code, but I can't find max_scsi_adapter_scatter_gather_elements. The max data transfer appears to be ~1MB on my kernel. I'm using Redhat 9 with a custom kernel I built.(4.20-8_SPARSE_16). I would like to double the max tranfer size so my target device can be forced to do iterations on large read and write command. I'm assuming changing PAGE_SIZE would cause problems for other modules.
> 
> Nathan Iverson

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Where is max_scsi_adapter_scatter_gather_elements found in the Linux source code?
@ 2004-09-21 16:58 Nate Iverson
  0 siblings, 0 replies; 3+ messages in thread
From: Nate Iverson @ 2004-09-21 16:58 UTC (permalink / raw)
  To: linux-scsi

> In http://en.tldp.org/HOWTO/SCSI-Generic-HOWTO/dio.html it says 
> 
> Notes
> 
> [1]	Unfortunately that setup time is large enough in some versions of the lk 2.4 series to adversely impact direct IO performance. Also memory malloc()-ed in the user space tends to be made up of discontinuous pages seen from the SCSI adapter. This requires the sg driver to build heavily splintered scatter gather lists which is less than desirable. This limits the maximum transfer size to [(max_scsi_adapter_scatter_gather_elements - 1) * PAGE_SIZE]. [This is a _different_ scatter gather mechanism to that which the user sees in the sg interface based on iovec.]
> 
> 
> I have grepped through the Linux source code, but I can't find max_scsi_adapter_scatter_gather_elements. The max data transfer appears to be ~1MB on my kernel. I'm using Redhat 9 with a custom kernel I built.(4.20-8_SPARSE_16). I would like to double the max tranfer size so my target device can be forced to do iterations on large read and write command. I'm assuming changing PAGE_SIZE would cause problems for other modules.
> 
> Nathan Iverson

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-22  4:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-21 17:05 Where is max_scsi_adapter_scatter_gather_elements found in the Linux source code? Nate Iverson
2004-09-22  4:44 ` Douglas Gilbert
  -- strict thread matches above, loose matches on Subject: below --
2004-09-21 16:58 Nate Iverson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).