--- /dev/null
+Return-Path: <dmishd@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 57A23431FBD\r
+ for <notmuch@notmuchmail.org>; Tue, 4 Feb 2014 10:04:33 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id ebrKOctANQZ0 for <notmuch@notmuchmail.org>;\r
+ Tue, 4 Feb 2014 10:04:27 -0800 (PST)\r
+Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com\r
+ [209.85.216.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 0C0CB431FBC\r
+ for <notmuch@notmuchmail.org>; Tue, 4 Feb 2014 10:04:27 -0800 (PST)\r
+Received: by mail-qa0-f51.google.com with SMTP id f11so12715014qae.24\r
+ for <notmuch@notmuchmail.org>; Tue, 04 Feb 2014 10:04:25 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:sender:in-reply-to:references:from:date:message-id\r
+ :subject:to:cc:content-type;\r
+ bh=IXen1FRWAMAMb8KouLrxuoeDjwU/7bWF5D6FJmnDGZ4=;\r
+ b=P0tfRP7M7fKdFJTrwPUZn10iPzXwYflafDemm5g9GytFasRY64jJbcPXG/SQMncihJ\r
+ 2Wu/K9QK9+BE+aMLtXftnHoHarDDuhvkel/JzzTGuwWy534pr/64S6E0uqk1uNw0dy/w\r
+ CzqMECLO5vs4ohgq3QXUu2EvKXolOIDapSq6DsVPOdKfEFLzZvui4HdGZy0p0N9Dzapt\r
+ iqFzSEEM2ooDt+Zdus2x0J3AFqjrCIRewAOeClVEmFFPT7zHMAmFIeIAFKvoT/vdK1nC\r
+ xGNZNHTeT4C1nU30cU154I22axFHv030gaKPLHOenmGzddSabC9rAv/KmPNDeOjP1zPj\r
+ +Jug==\r
+X-Received: by 10.140.37.146 with SMTP id r18mr64619747qgr.61.1391537065313;\r
+ Tue, 04 Feb 2014 10:04:25 -0800 (PST)\r
+MIME-Version: 1.0\r
+Sender: dmishd@gmail.com\r
+Received: by 10.140.49.83 with HTTP; Tue, 4 Feb 2014 10:03:45 -0800 (PST)\r
+In-Reply-To: <87r47jcmj6.fsf@nikula.org>\r
+References:\r
+ <CAOxvSbfWu3M=M1PyFrZcUhszjW0rpb0wYOiia+3sSSd9AGqD4w@mail.gmail.com>\r
+ <87r47jcmj6.fsf@nikula.org>\r
+From: Hamish Downer <hamish@foobacca.co.uk>\r
+Date: Tue, 4 Feb 2014 18:03:45 +0000\r
+X-Google-Sender-Auth: 9F-3oe94imF0wQfJA067Yr45Vv4\r
+Message-ID:\r
+ <CAOxvSbcii-0YDs3+Q0=oJ6gMrbd5E59-FraPDJjvdaL3u2OCqw@mail.gmail.com>\r
+Subject: Re: notmuch killed due to out of memory - how to move forward\r
+To: Jani Nikula <jani@nikula.org>\r
+Content-Type: text/plain; charset=UTF-8\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 04 Feb 2014 18:04:33 -0000\r
+\r
+On 4 February 2014 08:25, Jani Nikula <jani@nikula.org> wrote:\r
+> On Mon, 03 Feb 2014, Hamish Downer <hamish@foobacca.co.uk> wrote:\r
+>> I recently deleted almost 30000 old messages from my maildirs, and\r
+>> since I did that, notmuch new has not managed to complete. I have it\r
+>> running on a server with 1 GB of RAM, and the output is telling me\r
+>>\r
+>> Cleaned up 25515 of 29803 messages (1m 10s remaining).\r
+>>\r
+>> at the point it is killed. I have followed it up to this point with\r
+>> top and free and I can see memory usage growing to something like\r
+>> 700MB (RES) at which point the process is killed.\r
+>\r
+> Please try SIGINT, or ^C, on notmuch new before it gets killed. That\r
+> should be handled gracefully, making progress, and letting you chop up\r
+> and eventually finish the operation. Please let us know if this helps.\r
+\r
+That did it, thank you. Good to know Ctrl-C is gracefully handled.\r
+\r
+> Needless to say, we shouldn't use that much memory just to delete files\r
+> from the index.\r
+\r
+I have saved a copy of the index from before I fixed the problem. I am\r
+happy to re-run it with a rebuilt notmuch if that would be useful from the\r
+point of view of uncovering bugs.\r
+\r
+Otherwise I'll carry on as a happy notmuch user\r
+Hamish\r