| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfs: preallocation transactions do not need to be synchronous |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Thu, 10 Mar 2011 02:36:34 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1299713852-7663-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1299713852-7663-1-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Thu, Mar 10, 2011 at 10:37:32AM +1100, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > Preallocation and hole punch transactions are currently synchronous > and this is causing performance problems in some cases. The > transactions don't need to be synchronous as we don't need to > guarantee the preallocation is persistent on disk until a > fdatasync, fsync, sync operation occurs. If the file is opened > O_SYNC or O_DATASYNC, only then should the transaction be issued > synchronously. I had the same patch in my queue, but it turns out even that isn't enough for good performance when used fallocate in the fast path (e.g. recent Samba). I'll send a more comprehensive optimization that includes this soon. I also refactored the whole area to make the various flags more sensible. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] xfs: stop using the page cache to back the buffer cache, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH] xfs: flush vmap aliases when mapping fails, Christoph Hellwig |
| Previous by Thread: | [PATCH] xfs: preallocation transactions do not need to be synchronous, Dave Chinner |
| Next by Thread: | Re: [PATCH] xfs: preallocation transactions do not need to be synchronous, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |