notmuch search and tags
[notmuch-archives.git] / 35 / ab44b0d7760d23a25e743e9a5cd2515e93a066
1 Return-Path: <gmn-notmuch@m.gmane.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 0F3B3431FBC\r
6         for <notmuch@notmuchmail.org>; Tue,  9 Feb 2010 14:09:59 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.784\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.784 tagged_above=-999 required=5\r
12         tests=[AWL=-0.785, BAYES_50=0.001] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id mSxZGbnJEe0S for <notmuch@notmuchmail.org>;\r
16         Tue,  9 Feb 2010 14:09:58 -0800 (PST)\r
17 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])\r
18         by olra.theworths.org (Postfix) with ESMTP id 3CD02431FAE\r
19         for <notmuch@notmuchmail.org>; Tue,  9 Feb 2010 14:09:58 -0800 (PST)\r
20 Received: from list by lo.gmane.org with local (Exim 4.69)\r
21         (envelope-from <gmn-notmuch@m.gmane.org>) id 1NeyHM-0002Vk-9Q\r
22         for notmuch@notmuchmail.org; Tue, 09 Feb 2010 23:09:56 +0100\r
23 Received: from ip-118-90-138-203.xdsl.xnet.co.nz ([118.90.138.203])\r
24         by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
25         id 1AlnuQ-0007hv-00\r
26         for <notmuch@notmuchmail.org>; Tue, 09 Feb 2010 23:09:56 +0100\r
27 Received: from olly by ip-118-90-138-203.xdsl.xnet.co.nz with local (Gmexim\r
28         0.1 (Debian)) id 1AlnuQ-0007hv-00\r
29         for <notmuch@notmuchmail.org>; Tue, 09 Feb 2010 23:09:56 +0100\r
30 X-Injected-Via-Gmane: http://gmane.org/\r
31 To: notmuch@notmuchmail.org\r
32 From: Olly Betts <olly@survex.com>\r
33 Date: Tue, 9 Feb 2010 22:09:31 +0000 (UTC)\r
34 Lines: 30\r
35 Message-ID: <slrnhn3n8t.3ls.olly@msgid.survex.com>\r
36 References: <5641883d1001140730l22832715ld6bdc95c9938d314@mail.gmail.com>\r
37         <87d41ce0qf.fsf@yoom.home.cworth.org>\r
38         <5641883d1001181035j534d8f5cxc3b5b0db315ff290@mail.gmail.com>\r
39         <5641883d1002091246r41562e28ref69732cdc79d1f8@mail.gmail.com>\r
40 X-Complaints-To: usenet@ger.gmane.org\r
41 X-Gmane-NNTP-Posting-Host: ip-118-90-138-203.xdsl.xnet.co.nz\r
42 User-Agent: slrn/pre1.0.0-11 (Linux)\r
43 Sender: news <news@ger.gmane.org>\r
44 Subject: Re: [notmuch] Notmuch performance problems on OSX\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Tue, 09 Feb 2010 22:09:59 -0000\r
58 \r
59 On 2010-02-09, Oliver Charles wrote:\r
60 > I just upgraded to xapian-core HEAD and notmuch master tip today, in\r
61 > desparation to get away from GMail. Sadly it's still taking at least\r
62 > 0.7s to tag a single thread (with one message). I'm really eager to\r
63 > solve this, could anyone give me any pointers on how I could go about\r
64 > profiling it or finding the cause of this problem?\r
65 \r
66 The first thing to try is disabling use of F_FULLFSYNC.  You'll need to\r
67 run this command in the xapian-core source tree to comment out the F_FULLFSYNC\r
68 code:\r
69 \r
70 perl -pi -e 's/^#ifdef F_FULLFSYNC/#if 0/' backends/*/*_io.h\r
71 \r
72 Then run "make" and "make install".\r
73 \r
74 This makes you a bit more vulnerable to power failures, but no worse than\r
75 a typical Unix system.  There's some background here:\r
76 \r
77 http://lists.apple.com/archives/Darwin-dev/2005/Feb/msg00072.html\r
78 \r
79 Assuming that helps, then (a) you have a workaround, and (b) we'll know for\r
80 sure it is F_FULLFSYNC to blame.\r
81 \r
82 I've created a ticket for a change to Xapian which should help here, but\r
83 not had a chance to work on it yet:\r
84 \r
85 http://trac.xapian.org/ticket/426\r
86 \r
87 Cheers,\r
88     Olly\r
89 \r