shortcut pinxi install (from github): wget smxi.org/pinxi
update to existing pinxi: pinxi -U
Show: pinxi -Mdxxxzy80
so the board can be compared to the reported drive speeds. Sometimes board physical speed max is the speed listed, sometimes the device physical speed max, even if faster than board speed, is listed.
Very old systems I believe in general will not work, because they don't have the /sys data that is used, that's old as in operating systems. /dev/hda, that is, not /dev/sda is the usual indicator I think. But old systems are of interest since I think the newer stuff tends to be the same or similar.
I've found so far some corner cases, with ata drives, and I think covered nvme drives, which require different logic in a significant way (nvme speeds are not like ata speeds, they are per lane, and actually are separate read / write within a lane, so the speeds require math, and to make matters more tricky, PCIe 1 and 2 have actual data speeds per lane of 80% of total, and PCIe 3 and greater have about 98.5% of total speed for data).
I'm a bit skeptical of my logic there, but it conforms with the nvme specs etc, but it did not match vendor specs in some cases, so that's confusing, but it's also due to the oddities of how Gbps vs MB/s can be re reporting and actual data rates.
Note that as far as I can tell, USB will not currently work with this method, and mmcblk devices (sd cards mostly) also do not work. I checked mmscblk data and there is no speed there to find. USB I'm not positive about yet, but so far I didn't find an obvious way to connect the drive to any type of speed listing without getting into real usb processing, which I'd rather not do for a simple feature like this.
Samples (normal system, and an nvme example:
Code: Select all
pinxi -Dxxxzy80 Drives: HDD Total Size: 1.15 TiB used: 395.22 GiB (33.6%) ID-1: /dev/sda vendor: Intel model: SSDSC2BW180A4 size: 167.68 GiB speed: 3.0 Gb/s serial: <filter> rev: DC32 scheme: MBR ID-2: /dev/sdb vendor: Western Digital model: WD1003FZEX-00MK2A0 size: 931.51 GiB speed: 3.0 Gb/s serial: <filter> rev: 1A01 temp: 29 C scheme: GPT ID-3: /dev/sdc vendor: Seagate model: ST380817AS size: 74.53 GiB speed: 1.5 Gb/s serial: <filter> rev: 3.42 temp: 35 C scheme: MBR ID-4: /dev/sdd type: USB vendor: Verbatim model: STORE N GO size: 3.63 GiB serial: <filter> rev: 5.00 scheme: MBR Drives: HDD Total Size: 484.15 GiB used: 144.09 GiB (29.8%) ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 PRO 512GB size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: 1B6QCXP7 scheme: GPT ID-2: /dev/sdc type: USB vendor: Generic model: STORAGE DEVICE size: 7.21 GiB serial: <filter> rev: 0551 scheme: MBR