Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757252AbYBSPVw (ORCPT ); Tue, 19 Feb 2008 10:21:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752977AbYBSPVn (ORCPT ); Tue, 19 Feb 2008 10:21:43 -0500 Received: from mail.syneticon.net ([213.239.212.131]:53732 "EHLO mail2.syneticon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752775AbYBSPVm (ORCPT ); Tue, 19 Feb 2008 10:21:42 -0500 Message-ID: <47BAF3FF.3070300@wpkg.org> Date: Tue, 19 Feb 2008 16:21:35 +0100 From: Tomasz Chmielewski User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: Chris Mason Cc: Theodore Tso , Andi Kleen , LKML , LKML Subject: Re: very poor ext3 write performance on big filesystems? References: <47B980AC.2080806@wpkg.org> <20080218141640.GC12568@mit.edu> <47BAED94.3040103@wpkg.org> <200802191006.50693.chris.mason@oracle.com> In-Reply-To: <200802191006.50693.chris.mason@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 34 Chris Mason schrieb: > On Tuesday 19 February 2008, Tomasz Chmielewski wrote: >> Theodore Tso schrieb: >> >> (...) >> >>> The following ld_preload can help in some cases. Mutt has this hack >>> encoded in for maildir directories, which helps. >> It doesn't work very reliable for me. >> >> For some reason, it hangs for me sometimes (doesn't remove any files, rm >> -rf just stalls), or segfaults. > > You can go the low-tech route (assuming your file names don't have spaces in > them) > > find . -printf "%i %p\n" | sort -n | awk '{print $2}' | xargs rm Why should it make a difference? Does "find" find filenames/paths faster than "rm -r"? Or is "find once/remove once" faster than "find files/rm files/find files/rm files/...", which I suppose "rm -r" does? -- Tomasz Chmielewski http://wpkg.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/