All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbusch@kernel.org (Keith Busch)
Subject: [PATCH 1/2] nvmet: make MDTS value configurable
Date: Tue, 2 Apr 2019 17:31:35 -0600	[thread overview]
Message-ID: <20190402233135.GF16792@localhost.localdomain> (raw)
In-Reply-To: <91c8f4a1-8bb6-adac-4206-e65d778cc2b1@mellanox.com>

On Tue, Apr 02, 2019@03:06:02PM +0300, Max Gurtovoy wrote:
> On 4/1/2019 2:48 PM, Hannes Reinecke wrote:
> > On 4/1/19 5:10 AM, Keith Busch wrote:
> > > 
> > > Wouldn't this indicate MDTS should be driven from hardware constraints
> > > rather than user tunable knobs? I don't think we should have user
> > > parameters if their only purpose is to test how host drivers react
> > > to them. It's okay if they've a functional purpose, but there are so
> > > many adjustable nvme parameters, this is a bit of a slippery slope if we
> > > want to turn the nvme target driver into a host driver test vehicle.
> > > 
> > I would love to indicate hardware constraints to nvme target; there's a
> > similar problem I'm facing in that the hardware is using only a limited
> > set of queues, but I cannot express this with nvme target.
> > However, in the absense of such an interface having a manual
> > configuration allows us to at least _map_ onto the hardware
> > capabilities.
> 
> my suggestion exactly check the HW constraint.
> 
> My suggestion also makes sure that a greedy user will get a clamp and an
> economical user can save resources at the target.
> 
> Let's say I have a very "weak" target server with super HCA (ConnectX-5), so
> in that case I would like to set mdts=4 (or so) and let the initiator block
> layer to deal with 1MB IO splits.
> 
> Keith,
> 
> although NVMe has many params, I guess we can make some of the most vital
> ones to be tunable.
> 
> I agree regarding code adaptation for test-cases (we shouldn't change driver
> in order to write tests), but in this case it's a real world scenario.

Fair enough, I am all for config options that serve to help the nvme
target work better.

  reply	other threads:[~2019-04-02 23:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-29 12:04 [PATCH 0/2] nvmet: add some more configfs attributes Hannes Reinecke
2019-03-29 12:04 ` [PATCH 1/2] nvmet: make MDTS value configurable Hannes Reinecke
2019-03-29 17:27   ` Heitke, Kenneth
2019-03-31 15:04   ` Max Gurtovoy
2019-04-01  2:02     ` Hannes Reinecke
2019-04-01  3:10       ` Keith Busch
2019-04-01 11:48         ` Hannes Reinecke
2019-04-02 12:06           ` Max Gurtovoy
2019-04-02 23:31             ` Keith Busch [this message]
2019-04-03 14:53         ` Christoph Hellwig
2019-03-29 12:04 ` [PATCH 2/2] nvmet: make CNTLID range configurable Hannes Reinecke
2019-04-03 18:11   ` Christoph Hellwig
2019-04-03 22:13     ` Hannes Reinecke

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=20190402233135.GF16792@localhost.localdomain \
    --to=kbusch@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.