xfs
[Top] [All Lists]

Re: block allocations for the refcount btree

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: block allocations for the refcount btree
From: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Date: Thu, 3 Mar 2016 17:36:10 -0800
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20160303140556.GA26825@xxxxxxxxxxxxx>
References: <20160210214058.GN14668@dastard> <20160212191046.GA28421@xxxxxxxxxxxxx> <20160301181809.GC27973@xxxxxxxxxxxxxxxx> <20160301204013.GA23128@xxxxxxxxxxxxx> <20160302052411.GB1902@xxxxxxxxxxxxxxxx> <20160302095932.GA9141@xxxxxxxxxxxxx> <20160302164102.GA20109@xxxxxxxxxxxxxxxx> <20160302165704.GA31438@xxxxxxxxxxxxx> <20160302212101.GF27973@xxxxxxxxxxxxxxxx> <20160303140556.GA26825@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Mar 03, 2016 at 06:05:56AM -0800, Christoph Hellwig wrote:
> On Wed, Mar 02, 2016 at 01:21:01PM -0800, Darrick J. Wong wrote:
> > Ok.  I think the problem is that making changes to the refcount btree eats
> > up our entire reservation in certain cases.  Can you try the following 
> > bandaid?
> > This should give us enough room to handle splitting the btree at both ends
> > of a range that we're refcount-changing.
> 
> This seems to work in general.  I ran into one log related hang when
> running -g auto on nfs, but it's not been reproducible so far.

It still breaks on 1k block filesystems, which confirms my suspicions that
we really need to have enough space in the reservation to handle the worst
case that every block in a n-block truncation has a separate refcountbt
record. :( :(

(Or break up our truncation activities, I suppose...)

--D

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