please eat my data!
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Mon, 12 Apr 2010 13:33:35 +0000 (15:33 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:35 +0000 (09:36 -0800)
17/bd6bfa2db8588971808f5f5abcc2652bcd0fd3 [new file with mode: 0644]

diff --git a/17/bd6bfa2db8588971808f5f5abcc2652bcd0fd3 b/17/bd6bfa2db8588971808f5f5abcc2652bcd0fd3
new file mode 100644 (file)
index 0000000..cc6aa98
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <Sebastian@SSpaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8A3834196F2\r
+       for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 06:33:43 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.5\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5\r
+       tests=[BAYES_05=-0.5] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id CxwnwRjthB8q for <notmuch@notmuchmail.org>;\r
+       Mon, 12 Apr 2010 06:33:42 -0700 (PDT)\r
+Received: from homiemail-a21.g.dreamhost.com (caiajhbdcbbj.dreamhost.com\r
+       [208.97.132.119])\r
+       by olra.theworths.org (Postfix) with ESMTP id D230D431FC1\r
+       for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 06:33:42 -0700 (PDT)\r
+Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
+       [129.132.133.204])\r
+       by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPA id 8068C300074\r
+       for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 06:33:39 -0700 (PDT)\r
+Received: by sspaeth.de (sSMTP sendmail emulation);\r
+       Mon, 12 Apr 2010 15:33:35 +0200\r
+From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
+To: "Notmuch list" <notmuch@notmuchmail.org>\r
+Subject: please eat my data!\r
+Date: Mon, 12 Apr 2010 15:33:35 +0200\r
+Message-ID: <87633wlrrk.fsf@SSpaeth.de>\r
+User-Agent: notmuch version 0.1.1 (Emacs 23.1.1/x86_64-pc-linux-gnu)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 12 Apr 2010 13:33:43 -0000\r
+\r
+fsync is really killing xapian (and notmuch). What suffers, are the\r
+boolean prefixes (tag, id, and thread). Using libeatmydata (which\r
+disables fsync) shows a 10x speedup for tagging. The speedup is only\r
+factor 2 for e.g. from: searches. This is ext4 on recent stock\r
+Ubuntu. Given that search by tag and thread are performed really often\r
+(each time I advance a thread, for example), that really hurts.\r
+\r
+With a warm file cache and a thread containing 11 messages:\r
+\r
+---------------------------------------------------\r
+time notmuch tag +test -- thread:0000000000000f4e\r
+real   0m0.677s\r
+user   0m0.030s\r
+sys    0m0.020s\r
+---------------------------------------------------\r
+time LD_PRELOAD=./libeatmydata.so notmuch tag +test -- thread:0000000000000f4e\r
+\r
+real   0m0.040s\r
+user   0m0.020s\r
+sys    0m0.020s\r
+---------------------------------------------------\r
+\r
+However tagging ~850 messages based on a from search is "ONLY" factor 2:\r
+------------------------------------------------------\r
+time notmuch tag +test -- from:"sebastian@sspaeth.de"\r
+\r
+real   0m2.355s\r
+user   0m1.240s\r
+sys    0m0.040s\r
+---------------------------------------------------\r
+time LD_PRELOAD=./libeatmydata.so notmuch tag +test -- from:"sebastian@sspaeth.de"\r
+\r
+real   0m1.286s\r
+user   0m1.230s\r
+sys    0m0.010s\r
+---------------------------------------------------\r