unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* please eat my data!
@ 2010-04-12 13:33 Sebastian Spaeth
  2010-04-12 14:21 ` Jameson Rollins
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Spaeth @ 2010-04-12 13:33 UTC (permalink / raw)
  To: Notmuch list

fsync is really killing xapian (and notmuch). What suffers, are the
boolean prefixes (tag, id, and thread). Using libeatmydata (which
disables fsync) shows a 10x speedup for tagging. The speedup is only
factor 2 for e.g. from: searches. This is ext4 on recent stock
Ubuntu. Given that search by tag and thread are performed really often
(each time I advance a thread, for example), that really hurts.

With a warm file cache and a thread containing 11 messages:

---------------------------------------------------
time notmuch tag +test -- thread:0000000000000f4e
real	0m0.677s
user	0m0.030s
sys	0m0.020s
---------------------------------------------------
time LD_PRELOAD=./libeatmydata.so notmuch tag +test -- thread:0000000000000f4e

real	0m0.040s
user	0m0.020s
sys	0m0.020s
---------------------------------------------------

However tagging ~850 messages based on a from search is "ONLY" factor 2:
------------------------------------------------------
time notmuch tag +test -- from:"sebastian@sspaeth.de"

real	0m2.355s
user	0m1.240s
sys	0m0.040s
---------------------------------------------------
time LD_PRELOAD=./libeatmydata.so notmuch tag +test -- from:"sebastian@sspaeth.de"

real	0m1.286s
user	0m1.230s
sys	0m0.010s
---------------------------------------------------

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-12 23:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-12 13:33 please eat my data! Sebastian Spaeth
2010-04-12 14:21 ` Jameson Rollins
2010-04-12 14:41   ` racin
2010-04-12 15:24   ` Sebastian Spaeth
2010-04-12 17:14     ` Stewart Smith
2010-04-12 17:47       ` Dirk Hohndel
2010-04-12 23:10         ` Servilio Afre Puentes
2010-04-12 23:35           ` Dirk Hohndel

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).