All of lore.kernel.org
 help / color / mirror / Atom feed
From: sagi@grimberg.me (Sagi Grimberg)
Subject: [PATCHv2] nvmet: make MDTS value configurable
Date: Wed, 24 Apr 2019 10:05:37 -0700	[thread overview]
Message-ID: <6e30cf78-ed72-4acc-2733-86f258750558@grimberg.me> (raw)
In-Reply-To: <fb0baf79-abbe-55be-c621-abf4d80355d9@mellanox.com>


> Yes, from what I saw we don't limit the max_io_size in the target since 
> we're using the rw-API.
> 
> In case 1 rdma ctx is not enough (MR page list for example) we use more 
> ctx's in the rw-API. I think we have a bug there since we don't check 
> that nr_ops is not to big for transaction.

What do you mean too big?

> So probably we need to add some limit int nvmet/RDMA for that as 
> NFS/RDMA does (let's agree on some value/module_param/tunable).
> 
> Or we can say that the limit is (if we force MRs for example):
> 
> rdma_rw_fr_page_list_len(device) * device_page_size * 
> max_mrs_per_transaction.

if at all it should probably be:
rdma_rw_fr_page_list_len(device) * device_page_size * 
attr->cap.max_rdma_ctxs

> We also need to calculate mr_pool_size and max_rdma_ctxs more carefully 
> IMO.
> 
> So let's agree on the approach and then implement a solution (Sagi, can 
> you comments on that too please ?)

I don't think we want a modparam for something this low-level...

we reserve a qp space and mr pool, we should limit MDTS based on that
alone.

> Nevertheless, While digging into it I saw some improvements we can do to 
> rw-API, so I'm preparing few patches (add static allocations option 
> instead of allocations in fast-path).

Note that I still don't understand what is the original issue Hannes
was trying to resolve...

  parent reply	other threads:[~2019-04-24 17:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-03 23:06 [PATCHv2] nvmet: make MDTS value configurable Hannes Reinecke
2019-04-04  5:27 ` Christoph Hellwig
2019-04-07 12:51   ` Max Gurtovoy
2019-04-08  6:16     ` Christoph Hellwig
2019-04-08 10:42       ` Max Gurtovoy
2019-04-08 10:50         ` Hannes Reinecke
2019-04-24 17:05         ` Sagi Grimberg [this message]
2019-04-25 14:29           ` 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=6e30cf78-ed72-4acc-2733-86f258750558@grimberg.me \
    --to=sagi@grimberg.me \
    /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.