X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=blobdiff_plain;f=performance.mdwn;h=250b07d78d8c39686d2146d762a797839251f110;hp=04a36d8e0d78e168d6e1a83b9c811bdafa9b345c;hb=618ce49f078599b4616afaaedf98df6fdf7f9b80;hpb=340850acdb04353360caaa94bed90c7cf2a194d5 diff --git a/performance.mdwn b/performance.mdwn index 04a36d8..250b07d 100644 --- a/performance.mdwn +++ b/performance.mdwn @@ -1,5 +1,20 @@ +[[!img notmuch-logo.png alt="Notmuch logo" class="left"]] # Optimize notmuch's performance +[[!toc levels=2]] + +## Use of ecryptfs slows notmuch down. + +I noticed that my `notmuch new` was really slow (several minutes) for +less then 20 new emails (around 20K in my database). + +The performance tests in the notmuch source didn't show any real +issue, even on a non-encrypted ext4 fs. + +After investigation and running different tests, a switch to a +LUKS-btrfs based filesystem to replace the ext4-ecryptfs resolved the +issue. It now takes some seconds to index hundreds of messages. + ## Xapian 1.2.x database format: chert vs. flint Xapian 1.2 (in contrast to 1.0.x) uses a new database format called @@ -25,7 +40,7 @@ XXX: add examples for different distributions Backup your notmuch tags: $ cd - $ notmuch dump notmuch-dump-b4chert + $ notmuch dump --output=notmuch-dump-b4chert Move away your old database: @@ -46,7 +61,7 @@ After the initial import it is definitely not necessary to define Restore your tags: - $ notmuch restore notmuch-dump-b4chert + $ notmuch restore --input=notmuch-dump-b4chert Check whether you are on chert now: @@ -78,7 +93,7 @@ This needs xapian 1.2 Backup your database: $ cd - $ notmuch dump notmuch-dump-b4compact + $ notmuch dump --output=notmuch-dump-b4compact Compact it: @@ -93,9 +108,8 @@ Remove old and renamed compacted, if compacting went well: ### More information about this in the email archives: -* [Carl Worth](http://notmuchmail.org/pipermail/notmuch/2010/001105.html) - -* [Sebastian Spaeth](http://notmuchmail.org/pipermail/notmuch/2011/004048.html) +* [Carl Worth](https://notmuchmail.org/pipermail/notmuch/2010/001105.html) -* [Pieter Praet](http://notmuchmail.org/pipermail/notmuch/2011/004175.html) +* [Sebastian Spaeth](https://notmuchmail.org/pipermail/notmuch/2011/004048.html) +* [Pieter Praet](https://notmuchmail.org/pipermail/notmuch/2011/004175.html)