Tuning ext3 Features
You can make a variety of performance-tuning enhancements to the
ext3 filesystem. Remember that in addition to the changes I’ve
outlined in this section, the performance tweaks associated with ext2
(like the noatime mount option) also apply to ext3
partitions. In fact, using noatime on any
journaling filesystem is strongly recommended. Because all changes to
the filesystem are logged, the impact of access time updates is
amplified. This is especially noticeable on heavily used
systems.
Data journaling
By default, only metadata journaling is enabled for an ext3
filesystem. To enable data journaling, mount the filesystem with the
option data=journal. For example:
# mount -t ext3 -o data=journal /dev/md0 /mnt/ext3While data journaling should slow down the overall performance
of your filesystem, there has been some suggestion that in certain
situations it could improve performance. I recommend testing each
option. The default ext3 operations
(data=ordered) specify that data should be
written to disk before metadata. This is the default because it
offers the best trade-off between performance and
reliability.
The data=writeback option provides the best overall performance, but impairs reliability a bit. Unlike ordered writes, writeback mode places no constraints on the order in which data and metadata are written to disk. While filesystem integrity is maintained using writeback mode, it’s possible that some data will not be committed to disk in the event of a system ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access