Re: [notmuch] Notmuch performance problems on OSX
authorStewart Smith <stewart@flamingspork.com>
Tue, 16 Feb 2010 03:53:26 +0000 (14:53 +1100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:12 +0000 (09:36 -0800)
15/090bda4bd349857b9917120669f52f03158717 [new file with mode: 0644]

diff --git a/15/090bda4bd349857b9917120669f52f03158717 b/15/090bda4bd349857b9917120669f52f03158717
new file mode 100644 (file)
index 0000000..2f79d91
--- /dev/null
@@ -0,0 +1,70 @@
+Return-Path: <stewart@flamingspork.com>\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 18FC7431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 15 Feb 2010 19:53:30 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.762\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.762 tagged_above=-999 required=5\r
+       tests=[AWL=-0.763, BAYES_50=0.001] 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 a-C0S2744yjr for <notmuch@notmuchmail.org>;\r
+       Mon, 15 Feb 2010 19:53:29 -0800 (PST)\r
+Received: from kaylee.flamingspork.com (kaylee.flamingspork.com\r
+       [74.207.245.61])\r
+       by olra.theworths.org (Postfix) with ESMTP id 26DB2431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 15 Feb 2010 19:53:29 -0800 (PST)\r
+Received: from willster (localhost [127.0.0.1])\r
+       by kaylee.flamingspork.com (Postfix) with ESMTPS id 9840A6393;\r
+       Tue, 16 Feb 2010 03:50:27 +0000 (UTC)\r
+Received: by willster (Postfix, from userid 1000)\r
+       id AF8B71023DAC; Tue, 16 Feb 2010 14:53:26 +1100 (EST)\r
+From: Stewart Smith <stewart@flamingspork.com>\r
+To: Olly Betts <olly@survex.com>, notmuch@notmuchmail.org\r
+In-Reply-To: <slrnhkvpvr.2rf.olly@msgid.survex.com>\r
+References: <5641883d1001140730l22832715ld6bdc95c9938d314@mail.gmail.com>\r
+       <slrnhkvpvr.2rf.olly@msgid.survex.com>\r
+Date: Tue, 16 Feb 2010 14:53:26 +1100\r
+Message-ID: <874olhbzux.fsf@willster.local.flamingspork.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: Re: [notmuch] Notmuch performance problems on OSX\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: Tue, 16 Feb 2010 03:53:30 -0000\r
+\r
+On Fri, 15 Jan 2010 03:58:50 +0000 (UTC), Olly Betts <olly@survex.com> wrote:\r
+> One difference between OS X and other systems is that OS X supports the\r
+> F_FULLSYNC ioctl, and other systems don't (currently, at least AFAIK)\r
+> and Xapian uses that if it is available to ensure that changes have\r
+> actually made it to disk:\r
+> \r
+> http://trac.xapian.org/ticket/288\r
+> \r
+> On other systems, it uses fdatasync() or fsync(), which typically just\r
+> ensure that the data has left the OS - it can sit in disk controller or\r
+> drive caches for potentially seconds longer.  This call happens once\r
+> per table for every (explicit or implicit) flush on a database.\r
+\r
+At least if you OS and file system don't hate you (e.g. XFS on Linux),\r
+then fsync() really does flush the drive cache.\r
+\r
+Also keep in mind that the OSX file system (HFS+) was great for\r
+1985. It's essentially single threaded :/\r
+\r
+-- \r
+Stewart Smith\r