From a2f8648fb31253df3969d36bd086be499a366974 Mon Sep 17 00:00:00 2001 From: John Pittman Date: Thu, 29 Nov 2018 20:35:33 -0500 Subject: [block] collect queue values for block devices The queue values for block devices are very important for performance, alignment, and I/O size issues. Add these values by default. Signed-off-by: John Pittman Signed-off-by: Bryn M. Reeves --- sos/plugins/block.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sos/plugins/block.py b/sos/plugins/block.py index e7e25bba..6816fec5 100644 --- a/sos/plugins/block.py +++ b/sos/plugins/block.py @@ -60,8 +60,10 @@ class Block(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): if disk.startswith("ram"): continue disk_path = os.path.join('/dev/', disk) + queue_path = os.path.join('/sys/block/', disk, 'queue') self.add_udev_info(disk_path) self.add_udev_info(disk_path, attrs=True) + self.add_udev_info(queue_path, attrs=True) self.add_cmd_output([ "parted -s %s unit s print" % (disk_path), "fdisk -l %s" % disk_path -- cgit