From: Jeremy Higdon <jeremy@sgi.com>
To: Jens Axboe <axboe@suse.de>
Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>,
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: Tue, 28 Sep 2004 23:57:54 -0700 [thread overview]
Message-ID: <20040929065753.GB195483@sgi.com> (raw)
In-Reply-To: <20040929062109.GB2322@suse.de>
On Wed, Sep 29, 2004 at 08:21:09AM +0200, Jens Axboe wrote:
> On Tue, Sep 28 2004, Andrew Vasquez wrote:
> > On Tue, 28 Sep 2004, Jens Axboe wrote:
> > > On Tue, Sep 28 2004, James Bottomley wrote:
> > > >
> > > > Well, don't go overboard on this ... there is a limit to the number of
> > > > outstanding requests any queue can have at one time...there's not much
> > > > point going over that since the block layer will throttle you when you
> > > > reach it. I think it's 128, but it might be 256 ... but anyway, not
> > > > much larger.
> > >
> > > That depends on both the io scheduler and the nr_requests setting, I
> > > don't think you should rely on any imposed block layer limit.
> > >
> >
> > So using scsi_device->request_queue->nr_requests as a highwater mark
> > is out of the question? Looking through the call-chain during
>
> It can change anytime.
>
> > queue-depth size manipulation:
> >
> > scsi_adjust_queue()
> > blk_queue_resize_tags()
> > init_tag_map()
> >
> > there appears to be a restriction of (rq->nr_requests * 2) entries:
> >
> > if (depth > q->nr_requests * 2) {
> > depth = q->nr_requests * 2;
> > printk(KERN_ERR "%s: adjusted depth to %d\n",
> > __FUNCTION__, depth);
> > }
> >
> > What's an acceptable compromise?
>
> Yeah that logic isn't very nice. I think it's a good idea to keep the
> tag depth at half the software depth, ie depth <= q->nr_requests. But
> I'll remove the auto-adjust.
Jens, are you saying that the host driver should enforce this limit?
Which auto-adjust are you removing?
thanks
jeremy
next prev parent reply other threads:[~2004-09-29 6:58 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 [this message]
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
-- 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=20040929065753.GB195483@sgi.com \
--to=jeremy@sgi.com \
--cc=James.Bottomley@SteelEye.com \
--cc=andrew.vasquez@qlogic.com \
--cc=axboe@suse.de \
--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).