Re: [PATCH 3/5] writeback: add counters for metadata usage

2016-10-30 Thread Jan Kara
On Tue 25-10-16 14:41:42, Josef Bacik wrote: > Btrfs has no bounds except memory on the amount of dirty memory that we have > in > use for metadata. Historically we have used a special inode so we could take > advantage of the balance_dirty_pages throttling that comes with using > pagecache. >

Re: [PATCH 3/5] writeback: add counters for metadata usage

2016-10-26 Thread Tejun Heo
Hello, Josef. On Wed, Oct 26, 2016 at 11:20:16AM -0400, Josef Bacik wrote: > > > @@ -3701,7 +3703,20 @@ static unsigned long > > > node_pagecache_reclaimable(struct pglist_data *pgdat) > > > if (unlikely(delta > nr_pagecache_reclaimable)) > > > delta = nr_pagecache_reclaimable; > > >

Re: [PATCH 3/5] writeback: add counters for metadata usage

2016-10-26 Thread Josef Bacik
On 10/25/2016 03:50 PM, Tejun Heo wrote: Hello, On Tue, Oct 25, 2016 at 02:41:42PM -0400, Josef Bacik wrote: Btrfs has no bounds except memory on the amount of dirty memory that we have in use for metadata. Historically we have used a special inode so we could take advantage of the

Re: [PATCH 3/5] writeback: add counters for metadata usage

2016-10-25 Thread Tejun Heo
Hello, On Tue, Oct 25, 2016 at 02:41:42PM -0400, Josef Bacik wrote: > Btrfs has no bounds except memory on the amount of dirty memory that we have > in > use for metadata. Historically we have used a special inode so we could take > advantage of the balance_dirty_pages throttling that comes

[PATCH 3/5] writeback: add counters for metadata usage

2016-10-25 Thread Josef Bacik
Btrfs has no bounds except memory on the amount of dirty memory that we have in use for metadata. Historically we have used a special inode so we could take advantage of the balance_dirty_pages throttling that comes with using pagecache. However as we'd like to support different blocksizes it