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 9D78B431FBC for ; Tue, 9 Feb 2010 14:22:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.548 X-Spam-Level: X-Spam-Status: No, score=-0.548 tagged_above=-999 required=5 tests=[AWL=-0.549, 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 nDgSynRKwnAT for ; Tue, 9 Feb 2010 14:22:46 -0800 (PST) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by olra.theworths.org (Postfix) with ESMTP id 574A1431FAE for ; Tue, 9 Feb 2010 14:22:43 -0800 (PST) Received: by fg-out-1718.google.com with SMTP id 16so1855fgg.2 for ; Tue, 09 Feb 2010 14:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=OqvpI7Cp7F2NCbUGYopfkTurAP1S1tiR132sG32pOB0=; b=baOKD9rVKY8X1B2EY7h456bqVtmxU9jL0+NBHIPpzS9IBhktO9aZ9Me+vpWwoDqVaP m7qQn4VaHV5ZWZhwvId77sFKYQ1I3F7w2m5qBjia7HTMSpuGoPGV0DFFj9ohr2GGhRzl L/c7mWg3P/QWKqO4uimNw+oUA3xs8UedNI78E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=X0RYTmDrcM4kfUShYndSKYV0TIkHJ5F6YtTp88+bX1p69rjJqvRN5cvxoWplGCtYLl gAu0TWaOv9D1rqfxM4UubB5bj//sChgacYD1sXFDoGf5f1Ja9cutaSPCDgNKCW5jGG3i 0qNEDoYIbu0IeHJuaSE0V9OI+Cry4wuhIN/+A= MIME-Version: 1.0 Received: by 10.87.9.39 with SMTP id m39mr1326298fgi.73.1265753789475; Tue, 09 Feb 2010 14:16:29 -0800 (PST) In-Reply-To: References: <5641883d1001140730l22832715ld6bdc95c9938d314@mail.gmail.com> <87d41ce0qf.fsf@yoom.home.cworth.org> <5641883d1001181035j534d8f5cxc3b5b0db315ff290@mail.gmail.com> <5641883d1002091246r41562e28ref69732cdc79d1f8@mail.gmail.com> Date: Tue, 9 Feb 2010 22:16:29 +0000 Message-ID: <5641883d1002091416m4b1f0210odf71c7a3054299@mail.gmail.com> From: Oliver Charles To: Olly Betts Content-Type: text/plain; charset=ISO-8859-1 Cc: notmuch@notmuchmail.org 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:22:46 -0000 On Tue, Feb 9, 2010 at 10:09 PM, Olly Betts wrote: > 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". $ time notmuch tag +inbox thread:6e66368b7887184c6d4c63653211b3f2 real 0m0.067s user 0m0.036s sys 0m0.028s Now this looks a little bit more usable! > Assuming that helps, then (a) you have a workaround, and (b) we'll know for > sure it is F_FULLFSYNC to blame. Looks like this is the case. > 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 I will add my info there and follow the ticket if I can. -- Oliver Charles / aCiD2 (Olly, sorry about the double email - in all my excitement I didn't hit reply all :))