[Dovecot] failed: Cannot allocate memory
Hi
when I try to index messages using squat on a 26'000 emails mailbox I get the below errors at the point dovecot says "* OK Mailbox indexing finished".
2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam@dom.com): read(/var/tmp/dovecot/spam/indexes/.INBOX_score20/dovecot.index.search.uids) failed: Cannot allocate memory 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam@dom.com): mremap_anon(44609536) failed: Invalid argument 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam@dom.com): read(/var/tmp/dovecot/spam/indexes/.INBOX_score20/dovecot.index.search.uids) failed: Invalid argument 2010-01-30 08:17:32 sleipnir local7.err dovecot IMAP(spam@dom.com): munmap_anon() failed: Invalid argument
This is the configuration I use for squat:
fts = squat fts_squat = partial=4 full=10
Dovecot version is 1.2.10, patched with sieve.
Thanks for any answers,
best, Philippp
On Sat, 2010-01-30 at 08:31 +0100, Philipp Snizek wrote:
I'm not really sure why read() would say that.
2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam@dom.com): mremap_anon(44609536) failed: Invalid argument
This failing with "Cannot allocate memory" would make more sense.
Anyway, solution is to change mail_process_size, either increase it or set it to 0 to disable the limit.
On 1/30/2010 9:08 AM, Philipp Snizek wrote:
http://wiki.dovecot.org/MainConfig
mail_process_size = 256 Set max. process size in megabytes. Most of the memory goes to mmap()ing files, so it shouldn't harm much even if this limit is set pretty high.
M.A.
participants (3)
-
Mario Antonio
-
Philipp Snizek
-
Timo Sirainen