Dovecot does not start on MacOS Monterey
Hi,
this is a duplicate of the "Dovecot does not start on MacOS Monterey 12.01"
thread.
I’m still seeing this on dovecot 2.3.19.1. Is there a recommended
workaround?
The last post in that thread indicated that some modifications in
./src/lib/restrict-process-size.c
might be necessary.
Best regards
Doro
You’ve tried the following and it still fails?
default_vsz_limit = 0
On 25 Oct 2022, at 18:13, Doro Rose wrote:
Hi, this is a duplicate of the "Dovecot does not start on MacOS Monterey 12.01" thread. I’m still seeing this on dovecot 2.3.19.1. Is there a recommended workaround? The last post in that thread indicated that some modifications in
./src/lib/restrict-process-size.c
might be necessary.Best regards
Doro
Thanks for the quick response! No. If I set default_vsz_limit to 0 it works. My understanding was that this shouldn't be necessary in the first place, shouldn't it?
Am Mi., 26. Okt. 2022 um 03:31 Uhr schrieb Antonio Leding <tech@leding.net>:
You’ve tried the following and it still fails?
default_vsz_limit = 0
On 25 Oct 2022, at 18:13, Doro Rose wrote:
Hi, this is a duplicate of the "Dovecot does not start on MacOS Monterey 12.01" thread. I’m still seeing this on dovecot 2.3.19.1. Is there a recommended workaround? The last post in that thread indicated that some modifications in
./src/lib/restrict-process-size.c
might be necessary.Best regards
Doro
On 10/26/22 04:27, Doro Rose wrote:
Thanks for the quick response! No. If I set default_vsz_limit to 0 it works. My understanding was that this shouldn't be necessary in the first place, shouldn't it?
Most systems and software do not limit the virtual memory size. This is because virtual memory is just address space until something actually uses it, and the OS can ensure that an application that is working correctly with regard to virtual memory will NOT allocate too much real memory because of virtual memory.
Dovecot is actually the only software I have seen that has a native config for limiting the virtual memory size. I know why it's done ... there are certain classes of bug that can result in virtual memory leakage. Because virtual memory is NOT real memory, this class of bug might go unnoticed if there is no limit. Putting a limit on the size makes sure that bugs of that nature ARE caught.
My dovecot install is not huge ... only 200K total email messages stored. But I had to increase the default_vsz_limit to get dovecot working. I think it defaults to 256M, I increased it to 1024M. Dovecot's log should tell you how much virtual memory Dovecot is requesting, if the request fails.
Thanks, Shawn
Thanks for the explanation. In the other thread it was mentioned that the only setting that works with this problem is setting default_vsz_limit to 0 which sounds like the lowest limit possible.
Von meinem iPhone gesendet
Am 28.10.2022 um 18:28 schrieb Shawn Heisey <elyograg@elyograg.org>:
On 10/26/22 04:27, Doro Rose wrote:
Thanks for the quick response! No. If I set default_vsz_limit to 0 it works. My understanding was that this shouldn't be necessary in the first place, shouldn't it?
Most systems and software do not limit the virtual memory size. This is because virtual memory is just address space until something actually uses it, and the OS can ensure that an application that is working correctly with regard to virtual memory will NOT allocate too much real memory because of virtual memory.
Dovecot is actually the only software I have seen that has a native config for limiting the virtual memory size. I know why it's done ... there are certain classes of bug that can result in virtual memory leakage. Because virtual memory is NOT real memory, this class of bug might go unnoticed if there is no limit. Putting a limit on the size makes sure that bugs of that nature ARE caught.
My dovecot install is not huge ... only 200K total email messages stored. But I had to increase the default_vsz_limit to get dovecot working. I think it defaults to 256M, I increased it to 1024M. Dovecot's log should tell you how much virtual memory Dovecot is requesting, if the request fails.
Thanks, Shawn
On 10/30/22 07:24, Doro Rose wrote:
Thanks for the explanation. In the other thread it was mentioned that the only setting that works with this problem is setting default_vsz_limit to 0 which sounds like the lowest limit possible.
A setting of 0 tells dovecot to not set a limit, at which point whatever the OS has set will take effect. Whenever I look at the setting for an OS that I use it says "unlimited."
Thanks, Shawn
That makes sense. So leaving the decision to the OS is probably the smartest thing we can do at present.
Am 30.10.2022 um 14:39 schrieb Shawn Heisey <elyograg@elyograg.org>:
On 10/30/22 07:24, Doro Rose wrote:
Thanks for the explanation. In the other thread it was mentioned that the only setting that works with this problem is setting default_vsz_limit to 0 which sounds like the lowest limit possible.
A setting of 0 tells dovecot to not set a limit, at which point whatever the OS has set will take effect. Whenever I look at the setting for an OS that I use it says "unlimited."
Thanks, Shawn
participants (3)
-
Antonio Leding
-
Doro Rose
-
Shawn Heisey