[sane-devel] ADF Duplex performance problems
simon.matter at invoca.ch
Mon May 3 10:20:50 UTC 2010
> On Sun, Apr 25, 2010 at 4:45 PM, IlmÄrs PoikÄns <ilmars at delibero.lv>
>> I'm running latest SANE from git source on Ubuntu 9.10. I was testing
>> scaning A4 on Fujitsu ScanSnap 500 in 300 dpi Color uncompressed using
>> scanadf. Everything is fine when scanning only one side of sheet (image
>> 24MB). But when scanning with "ADF Duplex" as source, scanner pauses 3
>> during scanning. Two 24MB files are saved successfully. Clearly pausing
>> caused by data transfer issues somewhere.
> Does this happen on windows?
>> Any ideas where could be the
>> bottleneck? Scanner can't send data so fast over USB?
> Almost certainly.
>> Buffer too small for
>> USB transfers, so too many data exchange transactions creates delay and
>> slowdown of throughput?
> You can try increasing the buffer-size option in /etc/sane.d/fujitsu.conf.
The config states:
# to set data buffer size, in bytes
# the value ranges from 4096 - infinity
# but you may have scanning problems with
# a value larger than 65536 (the default)
option buffer-size 65536
I'm just wondering what kind of scanning problem may I have with bigger
buffer-size? Does it still apply to version 1.0.21?
>> I guess scanner is sending data from duplex scan
>> interleaved - data block for front side, data block for back side.
> for the low-memory scanners like the S500, yes.
>> Inefficient processing of such data in fujitsu-backend? Maybe problem
>> by scanadf (or any other frontend), that can read images only one by
>> Any ideas?
> as long as you have enough ram in the system to buffer the back side
> image, the backend can usually outrun the scanner.
>> What is the status of SANE 2.0? Is there any functionality for
>> many images simultaneously from one physical scan, like front and back
>> page during duplex scan, several image regions on pages?
> neither of those have been discussed for sane 2.0, but the
> 'multi-region' idea is probably a not going to happen. The first idea
> actually is already supported by the fujitsu backend. The 'low-memory'
> option causes the backend to do alternate transfers if required. You
> have to inspect the value of the 'side' option before each transfer to
> determine which image the next block will be for. This is only useful
> with a custom frontend, as nothing commonly used will support it.
> "The truth is an offense, but not a sin"
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
More information about the sane-devel