From 82f8c137e1881577d89309223f6d459361c671dd Mon Sep 17 00:00:00 2001 From: Peter Jin Date: Wed, 1 Oct 2025 15:02:10 -0400 Subject: [PATCH] udev/rules.d: make virtio-blk devices non-rotational MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Performance measurements turned out that in certain situations the paging/swap logic turns on the rotational feature for block devices. In the past, this feature has been disabled for DASD devices. FCP and NVMe devices are considered non-rotational by default (or exposed by the storage server). Because those are the backing devices on Linux on Z/LinuxONE instances, ensure that virtio-blk devices are always non-rotational. Signed-off-by: Peter Jin Signed-off-by: Jan Höppner --- etc/udev/rules.d/59-virtio-blk.rules | 1 + 1 file changed, 1 insertion(+) create mode 100644 etc/udev/rules.d/59-virtio-blk.rules diff --git a/etc/udev/rules.d/59-virtio-blk.rules b/etc/udev/rules.d/59-virtio-blk.rules new file mode 100644 index 00000000..2e3c13f7 --- /dev/null +++ b/etc/udev/rules.d/59-virtio-blk.rules @@ -0,0 +1 @@ +SUBSYSTEM=="block", ACTION=="add", KERNEL=="vd*[!0-9]", TEST=="queue/rotational", ATTR{queue/rotational}="0"