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 2470B431FBF; Fri, 20 Nov 2009 08:01:30 -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 hjGAfZFPtT5T; Fri, 20 Nov 2009 08:01:28 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5FFF9431FAE; Fri, 20 Nov 2009 08:01:28 -0800 (PST) From: Carl Worth To: Dominik Epple , notmuch@notmuchmail.org In-Reply-To: <123554aa0911200056h73def158pb0db64a2a78ed687@mail.gmail.com> References: <123554aa0911200056h73def158pb0db64a2a78ed687@mail.gmail.com> Date: Fri, 20 Nov 2009 17:01:17 +0100 Message-ID: <877htlmbhu.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] notmuch new: Memory problem 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: Fri, 20 Nov 2009 16:01:30 -0000 On Fri, 20 Nov 2009 09:56:50 +0100, Dominik Epple wrote: > I am strongly interested in giving notmuch a try. Welcome to notmuch, Dominik! I'm sorry your initial attempt to use it hasn't been quite as smooth as we might like. > But I fail setting > it up. The problem is that during "notmuch new", memory consumption > and system load increases to values that make my system unusable. I > then killed "notmuch new" at a memory consumption of 2.7G and at a > system load of 7. Yikes. That really sounds like something ran out of control consuming memory. I certainly haven't seen anything like that before. > After hitting Ctrl-C, it says "Stopping" but does not stop. I then > killed "notmuch new" after some minutes with signal KILL. After "Stopping" gets printed, the notmuch code won't be doing any more work. It is expected that it will take some time after that message is printed before notmuch will actually exit. The extra time is to wait for Xapian to flush out to disk data that notmuch has already provided to it. I'm curious how big your .notmuch directory ended up after this operation. (And how that compares in size to the total size of your collection of mail.) > Is there a problem with the number of my mails? I currently have over > 40.000 Mails... they live currently in mbox files, I created a Maildir > with mb2md-3.20.pl. That's definitely not too much mail. I think you should expect "notmuch new" currently to index on the order of 10 - 100 messages/sec. Your "notmuch new" process should have been reporting a count once per second as it progressed, (at least until things went wrong). How far did you see that go? I'm wondering if there's a particular file (or files) that are triggering the bad behavior. Maybe we need a debug option for "notmuch new" to print the filenames of messages as they are being processed. -Carl