Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #463

Determine SGEN max. transfer size

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!newsfeed1.sbs.de!nntp.fujitsu-siemens.com!not-for-mail
From Josef Moellers <josef.moellers@ts.fujitsu.com>
Newsgroups comp.os.linux.development.apps
Subject Determine SGEN max. transfer size
Date Thu, 19 Apr 2012 09:34:05 +0200
Organization Fujitsu Technology Solutions
Lines 24
Message-ID <jmof5d$fk6$1@nntp.ts.fujitsu.com> (permalink)
NNTP-Posting-Host 172.25.253.16
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 8bit
X-Trace nntp.ts.fujitsu.com 1334820845 16006 172.25.253.16 (19 Apr 2012 07:34:05 GMT)
X-Complaints-To abuse@sbs.de
NNTP-Posting-Date Thu, 19 Apr 2012 07:34:05 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20
X-Enigmail-Version 1.1.1
Xref csiph.com comp.os.linux.development.apps:463

Show key headers only | View raw


Hi,

I'm currently writing some test programs for hard disk drives and I'm
sending commands using the SCSI GENERIC driver.

I'm a bit confused about the use of SG_GET_SG_TABLESIZE and the max.
possible transfer size.
I had been under the impression that the value returned through
ioctl(fd, SG_GET_SG_TABLESIZE, &someint)
multiplied with the system's page size would give me the absolute limit
of any size handled by the sgen layer, but when I removed the limit
(setting it to an arbitrary 1GB), the transfers just went fine ...

If, as I now assume, SG_GET_SG_TABLESIZE is only relevant if iovec_cnt
is non-0, how can I determine the maximum permissable transfer size?

Thanks,

Josef
-- 
These are my personal views and not those of Fujitsu Technology Solutions!
Josef Möllers (Pinguinpfleger bei FTS)
	If failure had no penalty success would not be a prize (T.  Pratchett)
Company Details: http://de.ts.fujitsu.com/imprint.html

Back to comp.os.linux.development.apps | Previous | Next | Find similar


Thread

Determine SGEN max. transfer size Josef Moellers <josef.moellers@ts.fujitsu.com> - 2012-04-19 09:34 +0200

csiph-web