summarylogtreecommitdiffstats
path: root/ioscheduler-list
diff options
context:
space:
mode:
authorsimona2020-11-01 15:58:59 +0100
committersimona2020-11-01 15:58:59 +0100
commit1be2fa189211816f275805d83d8d6a73e72ac52a (patch)
treedd924832311c1345d7788d3644241ae85b9a52d9 /ioscheduler-list
downloadaur-simonas-scripts.tar.gz
start
Diffstat (limited to 'ioscheduler-list')
-rwxr-xr-xioscheduler-list13
1 files changed, 13 insertions, 0 deletions
diff --git a/ioscheduler-list b/ioscheduler-list
new file mode 100755
index 00000000000..002aab71240
--- /dev/null
+++ b/ioscheduler-list
@@ -0,0 +1,13 @@
+#!/bin/bash
+# Simona Pisano - 2018-11-18
+# simona-scripts
+# Libertamente utilizzabile sotto GPL v3
+
+ #alias sget-io-sched-all-device='
+ echo -e -n "I/O sched: ";
+ for device in /sys/block/nvme*/queue/scheduler ; do echo -e -n "nvme${device:15:3}>\e[1;39;41m" ` cat /sys/block/nvme${device:15:4}/queue/scheduler | cut -d "[" -f2 | cut -d "]" -f1 ` "\e[0m " ; done;
+ for device in /sys/block/sd*/queue/scheduler ; do echo -e -n "sd${device:13:1}>\e[1;39;41m" `cat /sys/block/sd${device:13:1}/queue/scheduler | cut -d "[" -f2 | cut -d "]" -f1` "\e[0m "; done;
+ echo ""
+ #'
+
+