thomas-krenn / TKperf

Performance test tool for SSDs, HDDs and RAID devices
https://www.thomas-krenn.com/en/wiki/TKperf
GNU General Public License v3.0
50 stars 23 forks source link

Skip 512 Byte size if device is 4K native format #33

Closed gschoenberger closed 4 years ago

gschoenberger commented 4 years ago

Devices with 4K native sector size cannot run tests with 512 Byte size as test workload. For example, this is a NVME device which fails to run any tests with 512 Byte as block size:

$ sudo nvme list -o json
{
 "Devices" : [
   {
     "DevicePath" : "/dev/nvme0n1",
     "Firmware" : "R1110007",
     "Index" : 0,
     "ModelNumber" : "XXXXXXXXXXXX",
     "ProductName" : "Unknown Device",
     "SerialNumber" : "XXXXXXXX",
     "UsedBytes" : 1600321314816,
     "MaximiumLBA" : 390703446,
     "PhysicalSize" : 1600321314816,
     "SectorSize" : 4096
   }
 ]

The following solutions are valid to skip the 512 Byte block size tests: