linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeremy Higdon <jeremy@sgi.com>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [RFC PATCH 2.6.9-rc2] Add sysfs queue depth override to qla2xxx
Date: Wed, 29 Sep 2004 15:12:08 -0700	[thread overview]
Message-ID: <20040929221208.GA199641@sgi.com> (raw)
In-Reply-To: <1096476093.10859.73.camel@praka>

On Wed, Sep 29, 2004 at 09:41:33AM -0700, Andrew Vasquez wrote:
> On Tue, 2004-09-28 at 17:36, Jeremy Higdon wrote:
> > So do we have a consensus on what the driver should limit queue
> > depth to?  Currently, it's 32 or ql2xmaxqdepth, if that was specified.
> > From what I can see, ql2xmaxqdepth is effectively limited to 65535.
> > 
> > We don't want one lun to use host driver or host adapter resources
> > to the point that it starves other luns.  Ideally, the max would
> > depend on what else was attached, but I don't think we want to
> > make this too complicated.
> 
> I agree.
> 
> >   Anyone changing the queue depth should
> > have a clue about what they're doing.
> > 
> > Andrew, how many command slots are there in the various adapters,
> > and do the continuation entries each eat a command slot?
> > 
> 
> Well, determining that can be complicated...
> 
> The request-queue size is based on the amount of SRAM available to the
> ISP.   For most HBAs (qla2100, qla2200, qla2300, qla2310, qla2342) which
> have an 128KB memory chip (per-port), the 8.x driver will allocate
> 2048-entry queue for requests.  
> 
> Many new(-er) boards (qla235x, qla236x) and embedded implementations
> (fibre-down) have a 512KB or 1MB chip.  Not wanting to digress into
> another layer of firmware resource-usage details, let's just say that
> the extra memory allows for the firmware to manage a larger number of
> requests.  The driver in these cases will allocate a 4096-entry
> request-queue.

I thought that there was not a one to one mapping between the request
queue size and the number of commands the chip/board could hold.

Anyway, this is probably far enough down that rathole.

> I'm not sure if it brings us any closer to answering the question of
> 'what's the max queue-depth we support?'  Is it even possible, since as
> you mentioned earlier, the admin will have to possess some outside
> knowledge (backend-storage, I/O type, I/O patterns) while tuning the
> queue-depth value.

Since there's no obvious answer, let's not try to out think the admin.
Andrew, I think you can just choose a maximum.  I would suggest that
the maximum be the same as the maximum for ql2xmaxqdepth, just to be
consistent.  Is that indeed 65535?

jeremy

  reply	other threads:[~2004-09-29 22:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 16:52 [RFC PATCH 2.6.9-rc2] Add sysfs queue depth override to qla2xxx Andrew Vasquez
2004-09-28 19:36 ` Jeremy Higdon
2004-09-28 19:53   ` James Bottomley
2004-09-28 20:12     ` Jens Axboe
2004-09-28 20:34       ` Andrew Vasquez
2004-09-29  6:21         ` Jens Axboe
2004-09-29  6:57           ` Jeremy Higdon
2004-09-29  6:56             ` Jens Axboe
2004-09-29  0:36     ` Jeremy Higdon
2004-09-29 16:41       ` Andrew Vasquez
2004-09-29 22:12         ` Jeremy Higdon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-28 16:54 Andrew Vasquez
2004-09-27  6:10 Jeremy Higdon
2004-09-27  6:25 ` Jeremy Higdon
2004-09-28  7:54 ` Jeremy Higdon
2004-09-28 14:05   ` James Bottomley

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=20040929221208.GA199641@sgi.com \
    --to=jeremy@sgi.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    /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).