On Thu, Jan 17, 2008 at 09:38:24PM -0800, Michael Rubin wrote:
True. But IMO, locality ordering really only impacts the small file
data writes and the inodes themselves because there is typically
lots of seeks in doing that.
For large sequential writes to a file, writing a significant
chunk of data gives that bit of writeback it's own locality
because it does not cause seeks. Hence simply writing large
enough chunks avoids any need to order the writeback by locality.
Hence I writeback ordering by locality more a function of
optimising the "iterate over small files" aspect of the writeback.
Not sure I understand what you mean. Can you rephrase that?
Then the filesystem is not doing it's job. Fragmentation does
not happen very frequently in XFS for large files - that is one
of the reasons it is extremely good for large files and high
throughput applications...
For large files it is overkill. For filesystems that do delayed
allocation, it is often impossible (no block mapping until
the writeback is executed unless it's an overwrite).
At this point, I'd say it is best to leave it to the filesystem and
the elevator to do their jobs properly.
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
--