earlephilhower / ezfio

Simple NVME/SAS/SATA SSD test framework for Linux and Windows
GNU General Public License v2.0
166 stars 52 forks source link

The capacity of drive is different from NVMe list #41

Closed qiuxin closed 4 years ago

qiuxin commented 4 years ago

The capacity of drive is different from NVMe list.

I use nvme list , the capacity is 6.4TB. The capacity of the same drive is 5961G. Would you please do me favor to let me know the reason?

[root/ezfio-master]# ./ezfio.py -d /dev/nvme2n1 -u 100 --yes


ezFio test parameters: Drive: /dev/nvme2n1 Model: Serial: AvailCapacity: 5961 GiB TestedCapacity: 5961 GiB

earlephilhower commented 4 years ago

HDD-vendor "GB" vs computer "GiB". SSDs are sold as 10^9 == 1GB. Computers use 2^30 == 1GiB. Hence, the reporting of GiB vs. "GB." See https://en.wikipedia.org/wiki/Gibibyte

2^30 * 5,961 = 6,400,575,012,864 bytes