linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: Alan Stern <stern@rowland.harvard.edu>,
	Pat LaVarre <p.lavarre@ieee.org>,
	SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: bytes/CDB of SCSI pass thru grossly limited maybe
Date: Sat, 28 Aug 2004 20:41:09 +0200	[thread overview]
Message-ID: <20040828184104.GA8460@suse.de> (raw)
In-Reply-To: <1093717255.3682.13.camel@mulgrave>

On Sat, Aug 28 2004, James Bottomley wrote:
> On Sat, 2004-08-28 at 13:55, Jens Axboe wrote:
> > Probably bio and SCSI should use a unified MAX_PAGES define, there's not
> > much point in bio setting up a 256 page bio_io_vec slab and mempool, if
> > noone can use it.
> 
> Sure, ours is SCSI_MAX_PHYS_SEGMENTS ... by default, we just use
> MAX_PHYS_SEGMENTS from the bio headers for this, which is 128, we could
> set this to BIO_MAX_PAGES, sure.
> 
> We allow values of 32,64,128 and 256 (the smaller ones were for tiny
> systems with SCSI stacks), the largest one for SGI/Qlogic.
> 
> However, I did ask the IBM spearker at OLS who was doing the elevator
> analysis to retry with 256 instead of 128, and he reported no difference
> within error, so I don't think there's much evidence that 256 actually
> does anything useful (other than consume a bit of spare memory).

Since SCSI doesn't build > 128 pages anyways, yes it doesn't make sense
to maintain a BIO_MAX_PAGES of 256. Didn't the SCSI part used to be 256
pages as well, I'm pretty sure that's what I put in when the
scsi_malloc() crud was dumped?

bio has 1, 4, 16, 64, 128, 256 pools. 32 might make more sense, I seem
to recall mpages using that. I'll see if I can sneak a BIO_MAX_PAGES
reduction in, and spend that extra pool on 32 instead :)

-- 
Jens Axboe


  reply	other threads:[~2004-08-28 18:41 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <A8E06BE4-F7BA-11D8-AC6B-00039398BB5E@ieee.org>
     [not found] ` <Pine.LNX.4.44L0 .0408271100590.1238-100000@ida.rowland.org>
2004-08-27 15:09 ` bytes/CDB of SCSI pass thru grossly limited maybe Alan Stern
2004-08-28 14:31   ` Jens Axboe
2004-08-28 15:14     ` Alan Stern
2004-08-28 15:36       ` Jens Axboe
2004-08-28 17:51     ` James Bottomley
2004-08-28 17:55       ` Jens Axboe
2004-08-28 18:20         ` James Bottomley
2004-08-28 18:41           ` Jens Axboe [this message]
2004-08-29 13:34             ` James Bottomley
2004-08-29 13:45               ` Jens Axboe
2004-08-30 18:15                 ` Pat LaVarre
2004-09-01 15:20                   ` Pat LaVarre
2004-07-30 23:04 Pat LaVarre
2004-07-31 14:12 ` Jens Axboe
2004-08-16 17:55   ` Pat LaVarre
2004-08-17 18:07     ` Pat LaVarre
2004-08-23 15:46     ` Jens Axboe
2004-08-23 16:05       ` Pat LaVarre
2004-08-23 17:08         ` Jens Axboe
2004-08-23 17:28           ` Pat LaVarre
2004-08-23 18:17             ` Jens Axboe
2004-08-26 23:20               ` Pat LaVarre
2004-08-23 16:06       ` Jeff Garzik
2004-08-23 17:05         ` Pat LaVarre
2004-08-23 18:48         ` Luben Tuikov
2004-08-23 19:06           ` Jeff Garzik
2004-08-23 19:14             ` Luben Tuikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040828184104.GA8460@suse.de \
    --to=axboe@suse.de \
    --cc=James.Bottomley@SteelEye.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=p.lavarre@ieee.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).