# Re: reaction to a smaller buffer size

From: Oliver Neukum (Oliver.Neukum@lrz.uni-muenchen.de)
Date: Sun Nov 19 2000 - 11:01:07 PST

- Next message: Jochen Eisinger: "Re: Patches for saned/net/scanimage/user-authorization...."
  - Previous message: Henning Meier-Geinitz: "Re: Excessive Warnings from CVS build"
  - In reply to: abel deuring: "Re: reaction to a smaller buffer size"
  - Next in thread: abel deuring: "Re: reaction to a smaller buffer size"
  - Reply: abel deuring: "Re: reaction to a smaller buffer size"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  > Oliver,
  >
  > agreed, it is really not likely that we get different amount of memory
  > after different open calls. But exactly this can be a problem: Imagine a
  > Sane user working on an ooverloaded Linux box, who gets from time to
  > time segfaults, and that [s]he can't reproduce this behaviuor reliably.
  > How someone get the idea that this behaviour might be caused by a
  > changing sanei_scsi_max_request_size?

  There must be a misunderstanding.

  There are situations where it's almost _certain_ that the
  kernel _will_ give out buffers of _different_ sizes.

  If you have one host adaptor which does scatter/gather and
  a second host adaptor which does no scatter/gather,
  the first will result in a buffer of 128K and the second a
  buffer of 32K.

  Regards
  Oliver

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Jochen Eisinger: "Re: Patches for saned/net/scanimage/user-authorization...."
  - Previous message: Henning Meier-Geinitz: "Re: Excessive Warnings from CVS build"
  - In reply to: abel deuring: "Re: reaction to a smaller buffer size"
  - Next in thread: abel deuring: "Re: reaction to a smaller buffer size"
  - Reply: abel deuring: "Re: reaction to a smaller buffer size"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Sun Nov 19 2000 - 10:47:36 PST