05-10-2016 02:01 PM - last edited on 05-10-2016 02:56 PM by PedroT
Do we need to set "commit=1" for EXT4 filesystems (default value appears to be 5 secs)?
The DS 5.2 Admin, discusses updating the "commit" property in fstab.
I was thinking based on the guide to either update the EXT4 partition arguments (in /etc/fstab) with either:
commit=nrsec (*) Ext4 can be told to sync all its data and metadata every 'nrsec' seconds. The default value is 5 seconds. This means that if you lose your power, you will lose as much as the latest 5 seconds of work (your filesystem will not be damaged though, thanks to the journaling). This default value (or any low value) will hurt performance, but it's good for data-safety. Setting it to 0 will have the same effect as leaving it at the default (5 seconds). Setting it to very large values will improve performance.
Solved! Go to Solution.
05-10-2016 02:08 PM
05-10-2016 02:08 PMSolution
This is one of the areas where fast disk is King. Having a default of 5 seconds could mean 10's of thousands of changes being lost in some very heavy load scenarios. It is easy for me to do >2000 modifies a second on some systems in fact in some cases we can do well over 20k changes a second. So yes our recommendation is to have this value set to commit=1 for that reason. Data reliability should always take precidence over performance. If they need high performance then SSDs are the best option.