Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 75D51431FBC for ; Sat, 21 Nov 2009 06:51:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5jnA1c2aOZfQ for ; Sat, 21 Nov 2009 06:51:19 -0800 (PST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by olra.theworths.org (Postfix) with ESMTP id 99B73431FAE for ; Sat, 21 Nov 2009 06:51:19 -0800 (PST) Received: from sirius.lasnet.de (sirius.lasnet.de [78.47.116.19]) by mx.perfora.net (node=mxus0) with ESMTP (Nemesis) id 0MHnnR-1NCfil1w0j-004C5X for notmuch@notmuchmail.org; Sat, 21 Nov 2009 09:51:19 -0500 Received: from p5b034af6.dip.t-dialin.net ([91.3.74.246] helo=excalibur) by sirius.lasnet.de with esmtpsa (Cipher TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63 #1) id 1NBrIv-0003yC-3M by authid with cram_md5 for ; Sat, 21 Nov 2009 15:51:15 +0100 Received: from stefan by excalibur with local (Exim 4.69) (envelope-from ) id 1NBrIu-0006At-2N for notmuch@notmuchmail.org; Sat, 21 Nov 2009 15:51:12 +0100 Date: Sat, 21 Nov 2009 15:51:11 +0100 From: Stefan Schmidt To: notmuch@notmuchmail.org Message-ID: <20091121145111.GB19397@excalibur.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: Mutt http://www.mutt.org/ X-KeyID: 0xDDF51665 X-Website: http://www.datenfreihafen.org/ User-Agent: Mutt/1.5.20 (2009-06-14) Subject: [notmuch] 25 minutes load time with emacs -f notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 14:51:20 -0000 Hello. Disclaimer: I'm using vim, in combination with mutt for email, for years, but never dealt with emacs. Please have this in mind and spot any emacs user errors in this report. :) I have first seen notmuch several weeks ago as it seems a silent project. Being more then happy now that it envolves quickly and a real developer community builds around it. But now to my problem. Getting m mail indexed was easy enough: stefan@excalibur:~$ du -chs not-much-mail/ 1.5G not-much-mail/ 1.5G total stefan@excalibur:~$ time notmuch new Found 103677 total files. Processed 103677 total files in 42m 30s (40 files/sec.). Added 100899 new messages to the database (not much, really). Tip: If you have any sub-directories that are archives (that is, they will never receive new mail), marking these directories as read-only (chmod u-w /path/to/dir) will make "notmuch new" much more efficient (it won't even look in those directories). real 43m0.943s user 22m46.513s sys 0m39.418s I put (require 'notmuch) in my ~/.emacs ans start emacs with the -f notmuch option to enter the notmuch mode. What happends then is that a notmuch process gets started and emacs waits for the return. 23649 pts/1 SN+ 0:00 | \_ emacs -f notmuch 23651 ? RNs 0:03 | \_ /usr/local/bin/notmuch search --sort=oldest-first tag:inbox Sadly that takes around 25 minutes here on an Intel Core2Duo notbeook (Thinkpad X200s). I tried this several times now. CPU load was low (~10%) during this time so it is mostly IO bound. I checked that I don't have any big files like mutt header caches left and all my mail is stored in maildir format diretcly from offlineimap. I'm more then happy to test any patches on this issue or do some debugging myself if I get some hints where to look. regards Stefan Schmidt