[Top] [All Lists]

Re: hole punching performance

To: "Bradley C. Kuszmaul" <kuszmaul@xxxxxxxxx>
Subject: Re: hole punching performance
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 16 Jan 2013 11:00:52 +1100
Cc: Florian Weimer <fw@xxxxxxxxxxxxx>, Ben Myers <bpm@xxxxxxx>, xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAKSyJXfs-vfUKybDiQR2mSdP18am06CHsx0io6bF9HLWmvWoFA@xxxxxxxxxxxxxx>
References: <CAKSyJXf66H2U-BF-aYnSr2fF24_6LJw6swOx1RhUc_3Eqayaiw@xxxxxxxxxxxxxx> <87pq195t8q.fsf@xxxxxxxxxxxxxxxxx> <CAKSyJXfQsmemZ3H9A92UezsPCXfn37LXP3tpPMkiwtvR4=eY2g@xxxxxxxxxxxxxx> <20130113194941.GB27055@xxxxxxx> <20130113225545.GA19173@dastard> <87mwwaqgkj.fsf@xxxxxxxxxxxxxxxxx> <CAKSyJXdejNhNgqq6g8N4n6Cjz2s3+m=JUvanTRfDtF72d2RxFg@xxxxxxxxxxxxxx> <20130115225435.GB2498@dastard> <CAKSyJXfs-vfUKybDiQR2mSdP18am06CHsx0io6bF9HLWmvWoFA@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, Jan 15, 2013 at 06:33:54PM -0500, Bradley C. Kuszmaul wrote:
> So my understanding is that the first time I do a read() I'll have to read
> the extents.  My writes are on the order of a megabyte, a 250MB file will
> likely require an extra I/O to open.  That's fine.

write size != extent size.

Extents on XFS on a 4k block size filesystem can be up to 8GB in
size. It's entirely likely that your 250MB file is a single extent
an dhence has no extra overhead on read.  Use xfs_bmap to check.


Dave Chinner

<Prev in Thread] Current Thread [Next in Thread>