Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


reduce_writes

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
reduce_writes [2014/05/21 18:54] adminreduce_writes [2014/05/29 11:31] admin
Line 1: Line 1:
-====reduce writes: tmpfs for logging and /tmp====+====Reduce writes: tmpfs for logging and /tmp====
 You will lose files in tmpfs after reboot! Use remote syslog for important logs if you log to tmpfs. You will lose files in tmpfs after reboot! Use remote syslog for important logs if you log to tmpfs.
  
Line 9: Line 9:
  
 ==Large commit interval== ==Large commit interval==
-You can change the ext4 journal commit interval to reduce writes+You can change the ext4 journal commit interval to reduce writes.
  
 Quote: [[https://www.kernel.org/doc/Documentation/filesystems/ext4.txt]] Quote: [[https://www.kernel.org/doc/Documentation/filesystems/ext4.txt]]
Line 24: Line 24:
  performance.</code>  performance.</code>
  
 +Edit **/etc/fstab** and add a commit= key value pair.
 <code> <code>
-/dev/mapper/vg_apu1-lv_root /                   ext4    defaults,noatime,discard,errors=remount-ro,commit=200        1 1  +/dev/mapper/vg_apu1-lv_root /                   ext4    defaults,noatime,errors=remount-ro,commit=60        1 1  
 </code> </code>
reduce_writes.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1