SSD optimization

gabrielpons

Member
Dec 4, 2019
19
0
21
Palma
Hello, first of all, sorry for my English as it is not my native language.

With my Debian installations I add to the /etc/fsatb file the noatime and discard options on the root disk. My question is: Do I have to do the same in a Proxmox installation?

Any help is greatly appreciated.
 
What storage do you use? LVM? ZFS?
Better than discard is to run a daily fstrim -a. Not 100 sure but I think PVE should by default be configured to run fstrim regularily.
 
Last edited:
Yes, and faster. Using discard as a mount option will run discard on each unlink call and therefore increase the time of the syscall.

Hi,

Agree 100% with @LnxBil . A Schedule script who is running once per each night it is recomended.


Code:
cat /etc/cron.daily/fstrim


#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true
 
Last edited: