In Linux, a log file system is usually used. If a system error occurs, the file system can be restored using logs to ensure its reliability. With write barriers enabled, logs are written before data is written to drives. This guarantees that file data is persistent on drives even if a system breakdown occurs, but compromises the write performance.
If servers use battery-backed RAID controller cards or use other protection methods, log loss caused by unexpected power-off can be avoided. In this case, you can disable write barriers to improve system performance.
Solution (CentOS is used as an example):
If sda is mounted to the /home/disk0 directory, the default fstab entry is as follows:
# mount -o nobarrier -o remount /home/disk0