[Top] [All Lists]

Re: [FAQ] XFS speculative preallocation

To: Florian Weimer <fw@xxxxxxxxxxxxx>
Subject: Re: [FAQ] XFS speculative preallocation
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Sat, 22 Mar 2014 06:32:52 -0700
Cc: Brian Foster <bfoster@xxxxxxxxxx>, xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <87eh1vuxam.fsf@xxxxxxxxxxxxxxxxx>
References: <20140321162920.GA3087@xxxxxxxxxxxxxx> <87eh1vuxam.fsf@xxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Mar 21, 2014 at 09:11:29PM +0100, Florian Weimer wrote:
> I see rather dramatic fragmentation of the systemd journal when it is
> stored on XFS, and it calls posix_fallocate before writing data to the
> file.

You mean it calls fallocate before each write?  That's not very useful
behaviour and should be fixed.  If it calls fallocate for the whole
expeted file size (or large increments) it should not fragment the file,
and if it does there's a bug we'd need to look into.

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