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 92E2449F19D for ; Tue, 16 Mar 2010 04:08:50 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.091 X-Spam-Level: X-Spam-Status: No, score=-4.091 tagged_above=-999 required=5 tests=[AWL=-0.092, BAYES_50=0.001, RCVD_IN_DNSWL_MED=-4] 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 dage82MMcAxu for ; Tue, 16 Mar 2010 04:08:48 -0700 (PDT) Received: from atreus.tartarus.org (atreus.tartarus.org [80.252.125.10]) by olra.theworths.org (Postfix) with ESMTP id 4832C49F193 for ; Tue, 16 Mar 2010 04:08:48 -0700 (PDT) Received: from olly by atreus.tartarus.org with local (Exim 4.69) (envelope-from ) id 1NrUdj-0001XP-15; Tue, 16 Mar 2010 11:08:47 +0000 Date: Tue, 16 Mar 2010 11:08:47 +0000 From: Olly Betts To: Ben Gamari Message-ID: <20100316110846.GK10323@survex.com> References: <4b9dccc0.c6c1f10a.3671.44ec@mx.google.com> <20100315090401.GA29891@glaive.weftsoar.net> <4b9e6e80.09b6660a.6769.6832@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b9e6e80.09b6660a.6769.6832@mx.google.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: notmuch@notmuchmail.org 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: Tue, 16 Mar 2010 11:08:50 -0000 On Mon, Mar 15, 2010 at 10:29:36AM -0700, Ben Gamari wrote: > On Mon, 15 Mar 2010 09:29:35 +0000 (UTC), Olly Betts wrote: > > 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. For the issue of a background task interfering with interactive use, the feel arguably matters more than the throughput. I'll probably put that patch in 1.0.19, and look at moving all the fdatasync() calls together. This is http://trac.xapian.org/ticket/426 BTW. The kernel should be able to handle this workload better though, so I would say it was worthwhile to bring up on LKML if you have the energy. It certainly isn't just you, as apt-xapian-index seems to trigger it for some Ubuntu users, and madduck mentioned it on #notmuch a week or so ago. Cheers, Olly