want mechanism to override physical block size of NVMe devices
All the NVMe devices that I had worked with so far use a 512 byte block size by default. Some of them also report other supported block sizes and the driver uses that to report the best performing block size as physical block size to blkdev.
Some SSDs such as the Samsung SM941 and SM951 report no other block sizes than 512 bytes. Apparently some users tried unsuccessfully to use the sd.conf workaround on nvme to fix this, so I think a similar mechanism for nvme would be useful to have.
This will introduce a min-phys-block-size property to nvme.conf which can be set to any power of 2. The maximum of this value and the best physical block size reported will be used as physical block size by the driver.
Updated by Electric Monk over 7 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 6801591e1fea06222c50622c468541c82c67cdb4 Author: Hans Rosenfeld <firstname.lastname@example.org> Date: 2016-09-29T16:06:41.000Z 7377 want mechanism to override physical block size of NVMe devices Reviewed by: Yuri Pankov <email@example.com> Reviewed by: Josef 'Jeff' Sipek <firstname.lastname@example.org> Reviewed by: Eric Sproul <email@example.com> Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Approved by: Garrett D'Amore <firstname.lastname@example.org>