[PATCH 2/3] nvme: introduce max_segments controller attribute
Christoph Hellwig
hch at lst.de
Mon Aug 21 23:32:15 PDT 2017
On Sun, Aug 20, 2017 at 09:35:25AM +0300, Sagi Grimberg wrote:
>> But the controller needs to support it, and NVMe controllers are
>> only required to support a 4k page size, the rest is optional.
>
> How exacly is the controller required to support the pag_size for
> fabrics?
It doesn't matter at all, except as the scaling factor for a few
reported values.
>> For PCIe (before fabrics existed) we used to do that, but we changed
>> it for ppc64 in this commit:
>>
>> c5c9f25b98 ("NVMe: default to 4k device page size")
>
> Yea... I'm wandering if this is specific to NVMe or it can trigger
> in RDMA as well.
As far as I can tell we could hit it with RDMA under the same
circumstances (weird iommu with a smaller page size than the system
page size), but for RDMA the nvme controller page size isn't the
one that matter, but rather the MR page size.
So for now to be safe it might be a good idea to always use a 4k
MR page size..
More information about the Linux-nvme
mailing list