avoid mbox file fragmentation

Stan Hoeppner stan at hardwarefreak.com
Tue Oct 19 22:03:19 CDT 2010


Dave Chinner put forth on 10/19/2010 6:42 PM:

> I've explained how allocsize works, and that speculative allocation
> gets truncated away whenteh file is closed. Hence is the application
> is doing:
> 
> 	open()
> 	seek(EOF)
> 	write()
> 	close()

I don't know if it changes anything in the sequence above, but Dovecot
uses mmap i/o.  As I've said, I'm not a dev.  Just thought this
could/might be relevant.  Would using mmap be compatible with physical
preallocation?

-- 
Stan




More information about the xfs mailing list