Solving the ext3 latency problem
Posted Apr 18, 2009 23:22 UTC (Sat) by bojan
In reply to: Solving the ext3 latency problem
Parent article: Solving the ext3 latency problem
Compare that to this comment:
Fundamentally, the problem is caused by data=ordered mode. This problem can be avoided by mounting the filesystem using data=writeback or by using a filesystem that supports delayed allocation such as ext4. This is because if you have a small sqllite database which you are fsync(), and in another process you are writing a large 2 megabyte file, the 2 megabyte file wont be be allocated right away, and so the fsync operation will not force the dirty blocks of that 2 megabyte file to disk; since the blocks havent been allocated yet, there is no security issue to worry about with the previous contents of newly allocated blocks if the system were to crash at that point.
Contradictory, isn't it?
to post comments)