diff options
author | John Pittman <jpittman@redhat.com> | 2018-11-29 20:35:33 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-19 16:56:31 +0000 |
commit | a2f8648fb31253df3969d36bd086be499a366974 (patch) | |
tree | e6758877fcd43c03523dec6d816dd36eb08a9d6a | |
parent | 16efa607c90c32e3a3dd7d2935ea2cc661937945 (diff) | |
download | sos-a2f8648fb31253df3969d36bd086be499a366974.tar.gz |
[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 <jpittman@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/block.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |