archinstall
archinstall copied to clipboard
RFE: support formatting nvme to optimal block size
I'm not a current user, but looking at potentially using archinstall to speed up installation in the future.
I would like it if arch install supported formatting nvme drives with optimal logical block sizes.
Many nvme support multiple logical block sizes (LBA format), usually 512 and 4k, with 4k being faster. The current and supported LBA formats for a namespace can be queried with nvme-id-ns(1), .e.g nvme id-ns -H /dev/nvme0n1, the tool also supports json output.
Setting the lba format:
- Is quick and easy at installation time, but also easy to forget
- Has a significant performance impact for the lifetime of the install
- Is very obnoxious to do later because it necessarily requires formatting the entire namespace, wiping all your data.
The logical block size is technically relevant to more devices, and there is a wiki page about it: https://wiki.archlinux.org/title/Advanced_Format. I'm only interested in nvme support.