But if I populate the file with a collection of near-1MB writes at random offsets, I'm likely to end up with one extent per write.  Each non-hole line in xfs_bmap is an extent, right?<div><br></div><div>-Bradley<br><br>

<div class="gmail_quote">On Tue, Jan 15, 2013 at 7:00 PM, Dave Chinner <span dir="ltr"><<a href="mailto:david@fromorbit.com" target="_blank">david@fromorbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tue, Jan 15, 2013 at 06:33:54PM -0500, Bradley C. Kuszmaul wrote:<br>
> So my understanding is that the first time I do a read() I'll have to read<br>
> the extents.  My writes are on the order of a megabyte, a 250MB file will<br>
> likely require an extra I/O to open.  That's fine.<br>
<br>
</div>write size != extent size.<br>
<br>
Extents on XFS on a 4k block size filesystem can be up to 8GB in<br>
size. It's entirely likely that your 250MB file is a single extent<br>
an dhence has no extra overhead on read.  Use xfs_bmap to check.<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
<br>
Dave.<br>
--<br>
Dave Chinner<br>
<a href="mailto:david@fromorbit.com">david@fromorbit.com</a><br>
</div></div></blockquote></div><br></div>