Can I delay disk/ssd writes for selected LXCs?

marco.r

New Member
Oct 23, 2025
1
0
1
Hi, for efficiency/wear-out reasons, I'd like to reduce the write frequency for some LXCs on the disk.

In other words, I'd like to configure something like "feel free to commit writes every 5 seconds" (this should be transparent to the hosted OS, which will think that writes has been done/committed).

I'd like to apply this config to some selected LXCs (over there I'm running some services for which I'm fine in losing some seconds of logs, in exchange of less writes, SSD in power saving mode longer, etc..)

Is it possible to configure such behaviour?
 
Last edited:
Nothing I'm aware of, inside a vm you could do something like that with an union fs. You could also use something like log2ram

I wouldn't recommend it though since the potential for dataloss is a little bit high for my preference. You don't need error logs except for troubleshooting. But then you will really miss them.

Buy used enterprise SSDs with powerloss-protection and you will never have to worry about it again.
 
Last edited: