From 12051bc8abf6a274a5d30a36721d69357e93bb43 Mon Sep 17 00:00:00 2001 From: muertos Date: Wed, 6 Dec 2023 10:59:37 -0500 Subject: [PATCH] Add info about fstrim fstrim also needs to be running on VMs for TRIM to work --- docs/tutorials/glance-trim-support.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/tutorials/glance-trim-support.md b/docs/tutorials/glance-trim-support.md index 1af680daf..976b3e44a 100644 --- a/docs/tutorials/glance-trim-support.md +++ b/docs/tutorials/glance-trim-support.md @@ -13,6 +13,13 @@ and which are still in use by the guest operating system. As a result, the device may not be able to efficiently manage the available storage space, leading to decreased performance over time. +## Enable TRIM in VMs using `fstrim` + +Note that to fully benefit from TRIM, it needs to be configured both in the +Glance image using metadata as well as in your VMs using the SystemD service +[`fstrim`](https://www.man7.org/linux/man-pages/man8/fstrim.8.html). By +default, this service runs weekly. + ## Intro to virtio-scsi Virtio-scsi is a virtualization interface that allows virtual machines (VMs)