1 Return-Path: <david@tethera.net>
\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 59331431FC3
\r
6 for <notmuch@notmuchmail.org>; Sat, 26 Oct 2013 04:53:08 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 0bYgEviHdqwg for <notmuch@notmuchmail.org>;
\r
16 Sat, 26 Oct 2013 04:53:03 -0700 (PDT)
\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])
\r
18 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id E6E4D431FB6
\r
21 for <notmuch@notmuchmail.org>; Sat, 26 Oct 2013 04:53:03 -0700 (PDT)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <david@tethera.net>)
\r
24 id 1Va2QO-0003dQ-E0; Sat, 26 Oct 2013 08:53:00 -0300
\r
25 Received: (nullmailer pid 25778 invoked by uid 1000); Sat, 26 Oct 2013
\r
27 From: David Bremner <david@tethera.net>
\r
29 To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org
\r
30 Subject: Re: [PATCH v2] new: Don't scan unchanged directories with no
\r
32 In-Reply-To: <878uxgvqh2.fsf@zancas.localnet>
\r
33 References: <20131024210837.GH20337@mit.edu>
\r
34 <1382650739-12438-1-git-send-email-amdragon@mit.edu>
\r
35 <878uxgvqh2.fsf@zancas.localnet>
\r
36 User-Agent: Notmuch/0.16+97~g6878b0b (http://notmuchmail.org) Emacs/24.3.1
\r
37 (x86_64-pc-linux-gnu)
\r
38 Date: Sat, 26 Oct 2013 08:52:55 -0300
\r
39 Message-ID: <87vc0ktfjc.fsf@zancas.localnet>
\r
41 Content-Type: multipart/mixed; boundary="=-=-="
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Sat, 26 Oct 2013 11:53:08 -0000
\r
57 Content-Type: text/plain
\r
59 David Bremner <david@tethera.net> writes:
\r
61 > Austin Clements <amdragon@MIT.EDU> writes:
\r
63 >> This can substantially reduce the cost of notmuch new in some
\r
64 >> situations, such as when the file system cache is cold or when the
\r
65 >> Maildir is on NFS.
\r
67 > On my desktop at home (a core i7 950) with spinning rust disks (and lvm
\r
68 > on luks) this patch yields about a 7% slowdown in the intial new perf
\r
73 > Wall(s) Usr(s) Sys(s) Res(K) In/Out(512B)
\r
74 > Initial notmuch new 579.60 348.86 14.26 217188 5330266/3501272
\r
78 > Wall(s) Usr(s) Sys(s) Res(K) In/Out(512B)
\r
79 > Initial notmuch new 620.51 368.62 15.48 217156 5330354/3416456
\r
81 > On an SSD I don't detect a significant different (<0.5% speedup)
\r
83 Seems like a false alarm. Averaging over 10 repetitions, the patched
\r
84 version is about 1% faster. Unfortunately it points out that our
\r
85 performance test suite should really do more than one repetition for
\r
90 Content-Type: text/x-sh
\r
91 Content-Disposition: inline; filename=crunch.sh
\r
95 test_description='notmuch new'
\r
97 . ./perf-test-lib.sh
\r
100 for i in $(seq 1 10); do
\r
101 rm -rf ${MAIL_DIR}/.notmuch
\r
102 sudo /home/bremner/config/scripts/drop-caches
\r
103 time_run "notmuch new #$i" 'notmuch new'
\r
109 Content-Type: application/octet-stream
\r
110 Content-Disposition: attachment; filename=drop-caches
\r
111 Content-Transfer-Encoding: base64
\r
113 c3luYwpzeW5jCmVjaG8gMSA+IC9wcm9jL3N5cy92bS9kcm9wX2NhY2hlcwplY2hvIDIgPiAvcHJv
\r
114 Yy9zeXMvdm0vZHJvcF9jYWNoZXMKZWNobyAzID4gL3Byb2Mvc3lzL3ZtL2Ryb3BfY2FjaGVzCg==
\r