From patchwork Fri May 3 12:56:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 2517071 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 956113FE80 for ; Fri, 3 May 2013 12:57:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762139Ab3ECM47 (ORCPT ); Fri, 3 May 2013 08:56:59 -0400 Received: from dkim1.fusionio.com ([66.114.96.53]:49559 "EHLO dkim1.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761757Ab3ECM45 (ORCPT ); Fri, 3 May 2013 08:56:57 -0400 Received: from mx2.fusionio.com (unknown [10.101.1.160]) by dkim1.fusionio.com (Postfix) with ESMTP id 416DD7C041B for ; Fri, 3 May 2013 06:56:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fusionio.com; s=default; t=1367585817; bh=JHJnNDhxSVlg5acqYnxYR7jMh3Dd8g6ALOLKzhZpwyQ=; h=From:To:Subject:Date; b=fc9LrERg9OCyLx6Zze2N6OQpneD7yNytnVQATT19P1iGfXLOeWBoDPkPhTGWU41+V Sj3OiqNoakFt1nvjukuttqzWhHH09jmwUHuXsFAcyoY4qhzaPeX7DaxSK5SGa0ILZI xeCf8KSKQkc2JtGI+9h6idqb1RfIyOhxDG27PwYk= X-ASG-Debug-ID: 1367585816-0421b536823be40001-6jHSXT Received: from mail1.int.fusionio.com (mail1.int.fusionio.com [10.101.1.21]) by mx2.fusionio.com with ESMTP id RVGfx4pEADRL9sOE (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 03 May 2013 06:56:56 -0600 (MDT) X-Barracuda-Envelope-From: JBacik@fusionio.com Received: from localhost (76.182.72.146) by mail.fusionio.com (10.101.1.19) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 3 May 2013 06:56:56 -0600 From: Josef Bacik To: Subject: [PATCH] Btrfs: increase the max global reserve size to 1gig Date: Fri, 3 May 2013 08:56:54 -0400 X-ASG-Orig-Subj: [PATCH] Btrfs: increase the max global reserve size to 1gig Message-ID: <1367585814-18076-1-git-send-email-jbacik@fusionio.com> X-Mailer: git-send-email 1.7.7.6 MIME-Version: 1.0 X-Barracuda-Connect: mail1.int.fusionio.com[10.101.1.21] X-Barracuda-Start-Time: 1367585816 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: http://10.101.1.181:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at fusionio.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.129893 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Apparently 512mb was too small, with a fs_mark command we could get so much delayed work built up that we'd never trip the "lets commit the transaction" logic until we'd gotten too much delayed refs built up. Increasing this to 1 gig makes us much safer and we no longer abort with Dave's fs_mark tester. Thanks, Signed-off-by: Josef Bacik --- fs/btrfs/extent-tree.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 7049bbc..f10ac46 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4516,7 +4516,7 @@ static void update_global_block_rsv(struct btrfs_fs_info *fs_info) spin_lock(&sinfo->lock); spin_lock(&block_rsv->lock); - block_rsv->size = min_t(u64, num_bytes, 512 * 1024 * 1024); + block_rsv->size = min_t(u64, num_bytes, 1024 * 1024 * 1024); num_bytes = sinfo->bytes_used + sinfo->bytes_pinned + sinfo->bytes_reserved + sinfo->bytes_readonly +