unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Hamish Downer <hamish@foobacca.co.uk>
To: notmuch@notmuchmail.org
Subject: notmuch killed due to out of memory - how to move forward
Date: Mon, 3 Feb 2014 22:18:01 +0000	[thread overview]
Message-ID: <CAOxvSbfWu3M=M1PyFrZcUhszjW0rpb0wYOiia+3sSSd9AGqD4w@mail.gmail.com> (raw)

Hello

I recently deleted almost 30000 old messages from my maildirs, and
since I did that, notmuch new has not managed to complete.  I have it
running on a server with 1 GB of RAM, and the output is telling me

    Cleaned up 25515 of 29803 messages (1m 10s remaining).

at the point it is killed.  I have followed it up to this point with
top and free and I can see memory usage growing to something like
700MB (RES) at which point the process is killed.

I am using notmuch 0.17 (from the debian jessie package 0.17-3) on
debian wheezy 64 bit.

Any pointers as to what to do to get past this point would be greatly
appreciated.  If I have just deleted that many messages should I just
expect notmuch to use that much memory?  (Unfortunately the company
supplying the server does not allow swap to be enabled so I can't fudge
it that way)

I did also try running it with NOTMUCH_TALLOC_REPORT, but that didn't
produce a report (though I was unsure if I needed to rebuild notmuch
before that would work).

Happy to build notmuch from source if this might be an interesting bug
worth tracking down.

Hamish

(PS sorry to moderators - I subscribed and then sent this email from the
wrong address a couple of times)

             reply	other threads:[~2014-02-03 22:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 22:18 Hamish Downer [this message]
2014-02-04  8:25 ` notmuch killed due to out of memory - how to move forward Jani Nikula
2014-02-04  9:01   ` Kushal Kumaran
2014-02-04 18:03   ` Hamish Downer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOxvSbfWu3M=M1PyFrZcUhszjW0rpb0wYOiia+3sSSd9AGqD4w@mail.gmail.com' \
    --to=hamish@foobacca.co.uk \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).