Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8770A4048F2 for ; Mon, 15 Mar 2010 02:29:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.851 X-Spam-Level: X-Spam-Status: No, score=-0.851 tagged_above=-999 required=5 tests=[AWL=-0.666, BAYES_40=-0.185] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8QAZeSBB54qG for ; Mon, 15 Mar 2010 02:29:56 -0700 (PDT) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by olra.theworths.org (Postfix) with ESMTP id 7A9C2454968 for ; Mon, 15 Mar 2010 02:29:56 -0700 (PDT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nr6cQ-0002Co-FC for notmuch@notmuchmail.org; Mon, 15 Mar 2010 10:29:51 +0100 Received: from ip-118-90-136-79.xdsl.xnet.co.nz ([118.90.136.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Mar 2010 10:29:50 +0100 Received: from olly by ip-118-90-136-79.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Mar 2010 10:29:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Olly Betts Date: Mon, 15 Mar 2010 09:29:35 +0000 (UTC) Lines: 32 Message-ID: References: <4b9dccc0.c6c1f10a.3671.44ec@mx.google.com> <20100315090401.GA29891@glaive.weftsoar.net> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip-118-90-136-79.xdsl.xnet.co.nz User-Agent: slrn/pre1.0.0-11 (Linux) Subject: Re: [notmuch] Notmuch performance (literally, in my case) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2010 09:29:57 -0000 On 2010-03-15, Hans Dieter Pearcey wrote: > On Sun, 14 Mar 2010 22:59:28 -0700 (PDT), Ben Gamari wrote: >> Notmuch is using xapian 1.08-1.99karmic from the Xapian backports PPA, which >> I believe includes the recent database update optimizations. > > As far as I know, it doesn't. 1.0.18 is the stable version in which it was > fixed. 1.0.18 is also the version that's in the PPA - 1.08 has to be a typo as the PPA tracks currently releases closely, and 1.0.8 is 18 months old. I've seen a similar issue reported with apt-xapian-index in Ubuntu (it uses Xapian to maintain a database of packages). But I've never seen anything like this myself, despite running Ubuntu on my laptop and spending a lot of my time building Xapian databases. Xapian's commit operation currently writes data and then calls fdatasync(), on several files one after another. That sounds a lot like a bad case in one of the mails you linked to. Can you try this patch (you'll need to rebuild Xapian from source, and depending where you install it, perhaps set LD_LIBRARY_PATH to ensure the new build gets used): http://oligarchy.co.uk/xapian/patches/xapian-1.0.18-flint-group-fsyncs.patch What this does it to at least pair up the calls to fdatasync(). It's possible to move them all together, but requires more effort, so it'd be nice to know if this is actually going to help. Cheers, Olly