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:

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!