From patchwork Tue May 3 19:28:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mitch Harder X-Patchwork-Id: 751192 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p43JSXtH022958 for ; Tue, 3 May 2011 19:28:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754660Ab1ECT2a (ORCPT ); Tue, 3 May 2011 15:28:30 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:33578 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325Ab1ECT2a (ORCPT ); Tue, 3 May 2011 15:28:30 -0400 Received: by yxs7 with SMTP id 7so158586yxs.19 for ; Tue, 03 May 2011 12:28:29 -0700 (PDT) Received: by 10.100.55.27 with SMTP id d27mr155531ana.96.1304450909636; Tue, 03 May 2011 12:28:29 -0700 (PDT) Received: from localhost.localdomain (adsl-70-146-208-159.mob.bellsouth.net [70.146.208.159]) by mx.google.com with ESMTPS id z2sm353963anj.11.2011.05.03.12.28.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2011 12:28:29 -0700 (PDT) From: Mitch Harder To: linux-btrfs@vger.kernel.org Cc: Mitch Harder Subject: [PATCH 2/2] [RFC] Btrfs: Increase limit of relocated extent size Date: Tue, 3 May 2011 14:28:15 -0500 Message-Id: <1304450895-15586-3-git-send-email-mitch.harder@sabayonlinux.org> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1304450895-15586-1-git-send-email-mitch.harder@sabayonlinux.org> References: <1304450895-15586-1-git-send-email-mitch.harder@sabayonlinux.org> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 03 May 2011 19:28:33 +0000 (UTC) The size of relocated compressed extents was limited to 128K. This limit is put in place to ease the RAM required when spreading compression across several CPUs, and to make sure the amount of IO required to do a random read is reasonably small. Increase this limit to 512K. --- fs/btrfs/relocation.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 58250e0..dd17a35 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -143,7 +143,7 @@ struct tree_block { unsigned int key_ready:1; }; -#define MAX_EXTENTS 128 +#define MAX_EXTENTS 512 struct file_extent_cluster { u64 start;