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 84ACF4196F2 for ; Mon, 12 Apr 2010 07:41:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.501 X-Spam-Level: X-Spam-Status: No, score=0.501 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, FREEMAIL_FROM=0.001, HK_NAME_FREE=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no 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 mF-fVNFlLIWO for ; Mon, 12 Apr 2010 07:41:30 -0700 (PDT) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by olra.theworths.org (Postfix) with ESMTP id 84F7A431FC1 for ; Mon, 12 Apr 2010 07:41:28 -0700 (PDT) Received: from smtp5-g21.free.fr (localhost [127.0.0.1]) by smtp5-g21.free.fr (Postfix) with ESMTP id F3A61D48154; Mon, 12 Apr 2010 16:41:24 +0200 (CEST) Received: from zimbra1-e1.priv.proxad.net (zimbra1-e1.priv.proxad.net [172.20.243.151]) by smtp5-g21.free.fr (Postfix) with ESMTP id CA50DD48158; Mon, 12 Apr 2010 16:41:21 +0200 (CEST) Date: Mon, 12 Apr 2010 16:41:21 +0200 (CEST) From: racin@free.fr To: Jameson Rollins Message-ID: <457171623.7414151271083281537.JavaMail.root@zimbra1-e1.priv.proxad.net> In-Reply-To: <87tyrgeopc.fsf@servo.finestructure.net> Subject: Re: please eat my data! MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [132.166.135.72] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Linux)/5.0.15_GA_2815.UBUNTU8_64) X-Authenticated-User: racin@free.fr Cc: Notmuch list 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, 12 Apr 2010 14:41:31 -0000 ----- "Jameson Rollins" a =C3=A9crit : > On Mon, 12 Apr 2010 15:33:35 +0200, "Sebastian Spaeth" > wrote: > > fsync is really killing xapian (and notmuch). What suffers, are the > > boolean prefixes (tag, id, and thread). Using libeatmydata (which > > disables fsync) shows a 10x speedup for tagging. The speedup is > only > > factor 2 for e.g. from: searches. This is ext4 on recent stock > > Ubuntu. Given that search by tag and thread are performed really > often > > (each time I advance a thread, for example), that really hurts. >=20 > Wow, this is really interesting, Sebastian. For those of us not in > the > know, can you explain what libeatmydata is and how it's used? It > sounds > like something I would *not* want to use! So you didn't have to > recompile here, and only had to set LD_PRELOAD=3D./libeatmydata.so? Is > there any drawback to what you're doing here? >=20 > jamie. >=20 It seems like it is a small library that implements fsync as no-op. Using L= D_PRELOAD=20 allows to overloads the libc's fsync definition by libeatmydata's one. Maki= ng writes faster, but no longer crash-safe. Matthieu