What is the default TRIM frequency on VMs in Proxmox?

en4ble

Member
Feb 24, 2023
69
5
8
Hello,

Is there a default frequency how often trim runs for VMs in proxmox?! I couldn't find anything. Not sure if I should run cron job for that or is there a place I could modify its frequency?!

Output from VM itself (Don't see discard there for dev/sda2):

Code:
 mount | grep 'on /'
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=3633116k,nr_inodes=908279,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=736196k,mode=755)
/dev/sda2 on / type ext4 (rw,relatime)

Discard enabled under disk:
1729870266436.png

Thank you in advance.
 
Last edited:
I guess I was looking wrong. Seems to be enabled:

systemctl list-timers --all | grep fstrim
Mon 2024-10-28 00:00:00 UTC 2 days left Mon 2024-10-21 00:00:01 UTC 4 days ago fstrim.timer fstrim.service
systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Fri 2024-10-25 15:40:24 UTC; 10min ago
Trigger: Mon 2024-10-28 00:00:00 UTC; 2 days left
Triggers: ● fstrim.service
Docs: man:fstrim
 
  • Like
Reactions: UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!