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 0F3B3431FBC for ; Tue, 9 Feb 2010 14:09:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.784 X-Spam-Level: X-Spam-Status: No, score=-0.784 tagged_above=-999 required=5 tests=[AWL=-0.785, BAYES_50=0.001] 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 mSxZGbnJEe0S for ; Tue, 9 Feb 2010 14:09:58 -0800 (PST) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by olra.theworths.org (Postfix) with ESMTP id 3CD02431FAE for ; Tue, 9 Feb 2010 14:09:58 -0800 (PST) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NeyHM-0002Vk-9Q for notmuch@notmuchmail.org; Tue, 09 Feb 2010 23:09:56 +0100 Received: from ip-118-90-138-203.xdsl.xnet.co.nz ([118.90.138.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2010 23:09:56 +0100 Received: from olly by ip-118-90-138-203.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2010 23:09:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Olly Betts Date: Tue, 9 Feb 2010 22:09:31 +0000 (UTC) Lines: 30 Message-ID: References: <5641883d1001140730l22832715ld6bdc95c9938d314@mail.gmail.com> <87d41ce0qf.fsf@yoom.home.cworth.org> <5641883d1001181035j534d8f5cxc3b5b0db315ff290@mail.gmail.com> <5641883d1002091246r41562e28ref69732cdc79d1f8@mail.gmail.com> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-118-90-138-203.xdsl.xnet.co.nz User-Agent: slrn/pre1.0.0-11 (Linux) Sender: news Subject: Re: [notmuch] Notmuch performance problems on OSX 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: Tue, 09 Feb 2010 22:09:59 -0000 On 2010-02-09, Oliver Charles wrote: > I just upgraded to xapian-core HEAD and notmuch master tip today, in > desparation to get away from GMail. Sadly it's still taking at least > 0.7s to tag a single thread (with one message). I'm really eager to > solve this, could anyone give me any pointers on how I could go about > profiling it or finding the cause of this problem? The first thing to try is disabling use of F_FULLFSYNC. You'll need to run this command in the xapian-core source tree to comment out the F_FULLFSYNC code: perl -pi -e 's/^#ifdef F_FULLFSYNC/#if 0/' backends/*/*_io.h Then run "make" and "make install". This makes you a bit more vulnerable to power failures, but no worse than a typical Unix system. There's some background here: http://lists.apple.com/archives/Darwin-dev/2005/Feb/msg00072.html Assuming that helps, then (a) you have a workaround, and (b) we'll know for sure it is F_FULLFSYNC to blame. I've created a ticket for a change to Xapian which should help here, but not had a chance to work on it yet: http://trac.xapian.org/ticket/426 Cheers, Olly