RE: Failures noticed in FIO run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Also which of the below do you think I should use to get the LBA size on device blockdev --getbsz /dev/nvme0n1 or blockdev --getss /dev/nvme0n1

I believe getbsz will always return the physical block size, while getss will return the logical block size.  Most SSDs have a 4096B physical block size, and some support emulating a 512B block size to the host, while still internally maintaining a 4096B physical block size.  So if you formatted your namespace 1 for 4096B or 512B, in both cases, getbsz returns 4096B.  Only if you formatted your namespace 1 to 512B will getss return 512B.  And if you formatted for metadata or protection information, it will be more difficult (you might want to look at a nvme command with nvme-cli instead of using these legacy ioctls).

Regards,
Jeff


��.n��������+%������w��{.n�������^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux