Skip to contentSkip to conversation

ext3 metadata performace

DISCUSSION Robert Hancock 1 participant 1 message May 12, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · Dieter Stüken

after I switched from from ext2 to ext3 i observed some severe performance degradation. Most discussion about this topic deals
with tuning of data-io performance. My problem however is related to metadata updates. When cloning (cp -al) or deleting directory trees I find, that about 7200 files are created/deleted per minute. Seems this is related to some ex3 strategy, to wait for each metadata to be
written to disk. Interestingly this occurs with my new hw-raid
controller (3ware 9500S), which even has an battery buffered disk cache.
Thus there is no need for synchronous IO anyway. If I disable the
disk cache on my plain SATA disk using ext3, I also get this behavior.

Quoted 9 lines

Would it be make sense for ext3, to disable synchronous writes even for metadata (similar to the "data=writeback" option)? This means, that ext3 won't protect the (meta) data currently written. This is needed if running a database or an email server, where the process performing the IO must be sure, the data is definitely on disk, if it returns form the system call. In most cases, however, you choose ex3 to ensure the consistency of your file system after a crash, to avoid an fsck. If some files, created just before the crash, vanish, does not hurt me too much.

I think that doing this would destroy all filesystem consistency guarantees provided by ext3. In this case you might as well use ext2. In order for the journalling to work, the metadata updates must be written to the journal before any of them start modifying the actual disk metadata, otherwise there is no way to recover in the event of a crash.

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/