From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Maxwell Subject: Re: Horrible btrfs performance due to fragmentation Date: Mon, 1 Nov 2010 12:09:43 -0400 Message-ID: References: <20101031224757.GA2430@selene> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Hugo Mills , cwillu , Calvin Walton , Linux Kernel Mailing List , linux-btrfs@vger.kernel.org, Chris Mason To: Felipe Contreras Return-path: In-Reply-To: List-ID: On Mon, Nov 1, 2010 at 11:58 AM, Felipe Contreras wrote: > Or when going through all the fragments of a file, have a counter, an= d > if it exceeds certain limit mark it somehow, so that it gets > defragmented at least to a certain extent. Thats elegant, =E2=80=94 then resources are only spent on defragmenting= files which are actually in use and which actually need it... but I don't see how it deals with the partial mutual exclusivity of defragmenting and COWed files. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758265Ab0KAQJr (ORCPT ); Mon, 1 Nov 2010 12:09:47 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:64418 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756428Ab0KAQJp convert rfc822-to-8bit (ORCPT ); Mon, 1 Nov 2010 12:09:45 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ifEZsfmIc7tsXuX+Ub7W7BN/p6EuX2tuWx+/arnw0L3BoY+DiM1/7QqXnJqPvEYuHT sBer8ag/mmyl/QvoBT9UgoEvBG8DSyOr1r/dgWEpXnjyVfD6WWTrlFqAB5vubX6h3Qk0 Eke86uONZAHWi6OPOPnZKkV5K/UZJqON8CFLM= MIME-Version: 1.0 In-Reply-To: References: <20101031224757.GA2430@selene> Date: Mon, 1 Nov 2010 12:09:43 -0400 Message-ID: Subject: Re: Horrible btrfs performance due to fragmentation From: Gregory Maxwell To: Felipe Contreras Cc: Hugo Mills , cwillu , Calvin Walton , Linux Kernel Mailing List , linux-btrfs@vger.kernel.org, Chris Mason Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 1, 2010 at 11:58 AM, Felipe Contreras wrote: > Or when going through all the fragments of a file, have a counter, and > if it exceeds certain limit mark it somehow, so that it gets > defragmented at least to a certain extent. Thats elegant, — then resources are only spent on defragmenting files which are actually in use and which actually need it... but I don't see how it deals with the partial mutual exclusivity of defragmenting and COWed files.