New Tool: lsds – List All Linux Block Devices and Settings in One Place
Published on: 2025-07-16 16:13:38
When dealing with disks and I/O things on Linux, you’d regularly run commands like lsblk , lsscsi , nvme list , etc. All of them tend to report a different set of information, so I ended up running multiple commands and correlating their output based on the device name or number.
And then I had to run commands like these, to get extra info about the current OS-level configuration settings for specific disks:
grep . /sys/class/block/sd*/device/queue_depth grep . /sys/class/block/*/queue/nr_requests
The above commands would show the hardware-advertised device queue depth and the OS block device level (software) queue depth.
I finally had enough and created a single Python program lsds for showing all interesting bits for a disk in one place. The lsds tool does not execute any other commands under the hood, it just reads the relevant info from sysfs /sys/class/blocks/... directories directly.
See my 0x.tools toolset for more Linux performance & troubleshooting tools.
Here’s an outpu
... Read full article.