From: James Smart <James.Smart@Emulex.Com>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: Christof Schmitt <christof.schmitt@de.ibm.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: queue_depth tracking from LLD
Date: Thu, 16 Apr 2009 10:38:06 -0400 [thread overview]
Message-ID: <49E742CE.3020302@emulex.com> (raw)
In-Reply-To: <49E74058.5010401@cs.wisc.edu>
Mike Christie wrote:
> James Smart wrote:
>
>> The mid-layer queue depth handling is really designed/optimized around
>> behavior for
>> a JBOD. This, if it's a single-lun device, the LLDD could largely ignore
>> doing anything
>> with adjusting the queue depth.
>>
>> However, for arrays, with multiple luns, the queue depth is usually a
>> target-level resource,
>> so the midlayer/block-layer's implementation falls on its face fairly
>> quickly. I brought this
>> up 2 yrs ago at storage summit. What needs to happen is the creation of
>> queue ramp-down
>> and ramp-up policies that can be selected on a per-lun basis, and have
>> these implemented
>> in the midlayer (why should the LLDD ever look at scsi command
>> results). What will make
>> this difficult is the ramp-up policies, as it can be very target
>> device-specific or configuration/load
>> centric.
>>
>
> For the rampup are you referring to code like lpfc_rampup_queue_depth?
> Were were just talking about this on the fcoe list. Why did lpfc and
> qla2xxx end up implememting their own code? We started to look into
> moving this into the scsi layer. It does not seem like there was a major
> reason why it should not have been more common. Was it just one of those
> things where it got added in one driver then added in another?
>
No good reason. It should be in the midlayer, and that was the
recommendation I made at
storage summit a couple of years ago. It hasn't as, for the drivers that
care, they had already
implemented it. It also isn't a relished task, as there will be lots of
discussion on how the
ramp-up should be implemented - which may mean, the need for more
algorithms.
> If we moved code like that to the scsi layer, then is all the is needed
> is a interface to config this?
>
Yep. As mentioned, figuring out what algorithm, for what device and
configuration, will be
the more interesting thing.
-- james
next prev parent reply other threads:[~2009-04-16 14:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 9:36 queue_depth tracking from LLD Christof Schmitt
2009-04-16 14:13 ` James Smart
2009-04-16 14:27 ` Mike Christie
2009-04-16 14:38 ` James Smart [this message]
2009-04-16 15:27 ` Christof Schmitt
2009-04-16 15:32 ` James Smart
2009-04-16 14:33 ` Matthew Wilcox
2009-04-16 14:40 ` James Smart
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=49E742CE.3020302@emulex.com \
--to=james.smart@emulex.com \
--cc=christof.schmitt@de.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.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