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 at 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 at dom.com): mremap_anon(44609536) failed: Invalid argument 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam at 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 at 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:> 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam at dom.com): > read(/var/tmp/dovecot/spam/indexes/.INBOX_score20/dovecot.index.search.uids) > failed: Cannot allocate memoryI'm not really sure why read() would say that.> 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam at dom.com): > mremap_anon(44609536) failed: Invalid argumentThis 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100130/40afdeb8/attachment-0002.bin>
On 30.01.2010 14:38, Timo Sirainen wrote:> On Sat, 2010-01-30 at 08:31 +0100, Philipp Snizek wrote: > > >> 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam at dom.com): >> read(/var/tmp/dovecot/spam/indexes/.INBOX_score20/dovecot.index.search.uids) >> failed: Cannot allocate memory >> > I'm not really sure why read() would say that. > > >> 2010-01-30 08:12:50 sleipnir local7.err dovecot IMAP(spam at 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. >Thanks. I changed the mail_process_size. It works now and searching is now pretty damn fast! What's the default limit on mail_process_size?