The diskinfo utility prints out information about a disk device, and optionally runs a naive performance test on the device.
If given no arguments, the output will be a single line per specified device with the following fields: device name, sectorsize, media size in bytes, media size in sectors, firmware cylinders, firmware heads, and firmware sectors. The last three fields are only present if the information is available.
If given the -v option, the fields will be printed one per line with a descriptive comment.
The -c option triggers a simple measurement of the I/O read command overhead.
The -t option triggers a simple and rather naive benchmark of the disks seek and transfer performance.
The diskinfo command appeared in
.Fx 5.1 .
.An Poul-Henning Kamp
There are in order of increasing severity: lies, damn lies, statistics, and computer benchmarks.