Mail: Dovecot `default_vsz_limit` stuck at 256M, large mailboxes fail to mmap their index cache
-
Mail: Dovecot
default_vsz_limitstuck at 256M, large mailboxes fail to mmap their index cacheOn mailboxes with a large index cache, Dovecot logs this when they are opened or indexed (Cloudron 10.1.5, mail 4.4.4, Dovecot 2.4.2; it already happened with 10.0.5 and Dovecot 2.3):
indexer-worker(user1@example.com): Error: Mailbox INBOX: mmap(size=200498572) failed with file /app/data/vmail/user1@example.com/mail/dovecot.index.cache: Cannot allocate memory imap(user2@example.com): Error: Mailbox Archive: mmap(size=111789528) failed with file /app/data/vmail/user2@example.com/mail/.Archive/dovecot.index.cache: Cannot allocate memoryA third mailbox (about 170,000 mails, 48 GB) has a 313 MB
dovecot.index.cacheand fails the same way. Dovecot then works without the cache, and these mailboxes are slow to open.The cause is Dovecot's per-process limit, which stays at its default:
# doveconf -h default_vsz_limit 256 Mdovecot.conf.templatedoes not set it. Raising the mail service memory limit in the dashboard does not help: the container now has about 25 GB, and every Dovecot process is still capped at 256M. Dovecot's own sample config says so: "Most of the memory goes to mmap()ing files. You may need to increase this limit if you have huge mailboxes."Could the mail container raise this limit, either
default_vsz_limitorvsz_limitforservice imapandservice indexer-worker(1G for example)? It could also follow the memory limit set in the dashboard. A supported way to add a custom Dovecot setting would solve it as well. -
-
G girish has marked this topic as solved
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login