Difference between revisions of "Disk Performance Tuning"

From Noah.org
Jump to navigationJump to search
Line 9: Line 9:
 
In other words, you made <em>loose data</em>, but you won't have <em>bad data</em>.
 
In other words, you made <em>loose data</em>, but you won't have <em>bad data</em>.
  
 +
Edit /etc/fstab to change ext3 mount options:
 
<pre>
 
<pre>
 
# /dev/sda1
 
# /dev/sda1
Line 18: Line 19:
 
</pre>
 
</pre>
  
Before you reboot run:
+
<strong>Before you reboot run</strong>:
 
<pre>
 
<pre>
 
tune2fs -o journal_data_writeback /dev/sda1
 
tune2fs -o journal_data_writeback /dev/sda1
 
</pre>
 
</pre>

Revision as of 12:00, 10 June 2007

Disk Performance Tuning

On my laptop I use EXT3. My fstab is setup for speed. I turn off atime and set the mode to journal_data_writeback. The data consistency guarantees are the same as the ext2 file system. This is still better than ext2 because file system integrity is maintained continuously, so the file system is always consistent even after an unclean shutdown. In other words, you made loose data, but you won't have bad data.

Edit /etc/fstab to change ext3 mount options:

# /dev/sda1
UUID=d4769677-d2a9-4d87-9165-fc44760495bc / ext3 defaults,errors=remount-ro,noatime,data=writeback 0 1

Older systems might use the /dev/hda1 notation (if upgrading you can get the UUID using the vol_id /dev/hda1 command):

/dev/hda1 / ext3 defaults,errors=remount-ro,noatime,data=writeback 0 1

Before you reboot run:

tune2fs -o journal_data_writeback /dev/sda1