Re: dovecot: lack of filehandles slows down thunderbird

2022-08-25 Thread Stuart Henderson
On 2022/08/24 21:11, Harald Dunkel wrote:
> Hi folks,
> 
> using the current dovecot-2.3.19.1p0v0 I had to increase the limits for
> dovecot's filehandles from 1024/2048 to 4096/8192. Without this change
> Thunderbird (running on Linux or MacOS) was horrible unresponsive.
> 
> Question is, why were the limits decreased in /etc/login.conf.d/dovecot
> 
>   # cat /etc/login.conf.d/dovecot
>   dovecot:\
>   :openfiles-cur=1024:\
>   :openfiles-max=2048:\
>   :tc=daemon:
> 
> overriding /etc/login.conf
> 
>   dovecot:\
>   :ignorenologin:\
>   :datasize=infinity:\
>   :maxproc=infinity:\
>   :openfiles-max=4096:\
>   :openfiles-cur=4096:\
>   :openfiles-max=4096:\
>   :openfiles-cur=4096:\
>   :stacksize-cur=8M:\
>   :tc=default:
> 
> ?
> 
> Please note the double entries in login.conf. This is weird.

You will need to ask whoever added them to login.conf on the machine you
are administering and/or whoever upgraded to 7.1 without following the
upgrade documentation at https://www.openbsd.org/faq/upgrade71.html

Also note the pkg-readme



Re: dovecot: lack of filehandles slows down thunderbird

2022-08-24 Thread Mike Fischer


> Am 24.08.2022 um 21:11 schrieb Harald Dunkel :
> 
> Hi folks,
> 
> using the current dovecot-2.3.19.1p0v0 I had to increase the limits for
> dovecot's filehandles from 1024/2048 to 4096/8192. Without this change
> Thunderbird (running on Linux or MacOS) was horrible unresponsive.
> 
> Question is, why were the limits decreased in /etc/login.conf.d/dovecot
> 
>   # cat /etc/login.conf.d/dovecot
>   dovecot:\
>   :openfiles-cur=1024:\
>   :openfiles-max=2048:\
>   :tc=daemon:
> 
> overriding /etc/login.conf
> 
>   dovecot:\
>   :ignorenologin:\
>   :datasize=infinity:\
>   :maxproc=infinity:\
>   :openfiles-max=4096:\
>   :openfiles-cur=4096:\
>   :openfiles-max=4096:\
>   :openfiles-cur=4096:\
>   :stacksize-cur=8M:\
>   :tc=default:
> 
> ?
> 
> Please note the double entries in login.conf. This is weird.

I see no specific entry for dovecot in /etc/login.conf on my systems. Did you 
add that yourself perhaps?

If so then I think the daemon entry in /etc/login.conf would normally (on 
pre-OpenBSD 7.1 systems) apply which is:

daemon:\
:ignorenologin:\
:datasize=4096M:\
:maxproc=infinity:\
:openfiles-max=1024:\
:openfiles-cur=128:\
:stacksize-cur=8M:\
:tc=default:

So the settings in /etc/login.conf.d/dovecot are actually an increase, not a 
decrease compared to the default.

If you find that these values are not high enough then by all means edit 
/etc/login.conf.d/dovecot to your liking.

Note that OpenBSD 7.1 introduced the /etc/login.conf.d/${class} mechanism which 
overrides the corresponding classes in /etc/login.conf, see login.conf(5). Thus 
if you updated from a modified older system and missed this change then the 
situation you described could occur.


HTH
Mike


dovecot: lack of filehandles slows down thunderbird

2022-08-24 Thread Harald Dunkel

Hi folks,

using the current dovecot-2.3.19.1p0v0 I had to increase the limits for
dovecot's filehandles from 1024/2048 to 4096/8192. Without this change
Thunderbird (running on Linux or MacOS) was horrible unresponsive.

Question is, why were the limits decreased in /etc/login.conf.d/dovecot

# cat /etc/login.conf.d/dovecot
dovecot:\
:openfiles-cur=1024:\
:openfiles-max=2048:\
:tc=daemon:

overriding /etc/login.conf

dovecot:\
:ignorenologin:\
:datasize=infinity:\
:maxproc=infinity:\
:openfiles-max=4096:\
:openfiles-cur=4096:\
:openfiles-max=4096:\
:openfiles-cur=4096:\
:stacksize-cur=8M:\
:tc=default:

?

Please note the double entries in login.conf. This is weird.


Regards

Harri