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 23C6A4048F5 for ; Mon, 15 Mar 2010 10:29:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.882 X-Spam-Level: X-Spam-Status: No, score=-1.882 tagged_above=-999 required=5 tests=[AWL=-0.772, BAYES_05=-1.11] 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 7mGzx8oO-5cD for ; Mon, 15 Mar 2010 10:29:38 -0700 (PDT) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by olra.theworths.org (Postfix) with ESMTP id EF6B7454968 for ; Mon, 15 Mar 2010 10:29:37 -0700 (PDT) Received: by fxm10 with SMTP id 10so2440394fxm.30 for ; Mon, 15 Mar 2010 10:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:subject :to:in-reply-to:references; bh=S8BZX8GJCyRuJme/l6HxGYR5YVLNDNyMTDU1eJQkuSQ=; b=mcMy1Q5/cTBkl3GekIHyPazoix0W4WMnBBzdIK1OGbGf1jfM/rLLTXAPKdmUoXV1bp jOwzqauyXQWLe0zMsKBPegxZ4ZmE/OE0B501MQT43TBSWC5V49MncBGQ3Ym2EdN0orZ8 ff6s4cUgU0X2n6rl3zhI/qfOCvPzd4LxUPHhU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:to:in-reply-to:references; b=wgW6pmGh2SMm6/hzrJ7mN000FAoFnqKEV4XYmo5yOhA4w0UZl19F0FyYMMc7d89fRe iHK7xBhGT0xueagZ9aONNuYbTD8ChFXbwI2Qf0qPf5sDSv4mBQ5xp0Y4iI2nhU6O8ok9 zE+9+l/LlMFAs/mQj9pW6N4CIpjzP3o29CyA0= Received: by 10.103.80.22 with SMTP id h22mr5201393mul.127.1268674176829; Mon, 15 Mar 2010 10:29:36 -0700 (PDT) Received: from localhost (umass-959-158.wireless.umass.edu [128.119.77.158]) by mx.google.com with ESMTPS id e9sm21762585muf.10.2010.03.15.10.29.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Mar 2010 10:29:36 -0700 (PDT) Message-ID: <4b9e6e80.09b6660a.6769.6832@mx.google.com> Date: Mon, 15 Mar 2010 10:29:36 -0700 (PDT) From: Ben Gamari To: Olly Betts , notmuch@notmuchmail.org In-Reply-To: References: <4b9dccc0.c6c1f10a.3671.44ec@mx.google.com> <20100315090401.GA29891@glaive.weftsoar.net> 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 17:29:39 -0000 On Mon, 15 Mar 2010 09:29:35 +0000 (UTC), Olly Betts wrote: > 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. Yep, my bad. That was a typo. > > 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. > > 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. > This does seem to help. Of course, latency is a difficult thing to measure, but notmuch does _feel_ faster. That being said, iostat still only shows 700kByte/second read and 300kByte/second write, so things haven't changed in the throughput side of things.