[Dovecot] Sizing login_process_size and login_processes_count?
Any suggestions on sizing login_process_size and login_processes_count for a server expected to be doing 100 to 200 simultaneous connections?
Is there a way to separate login_processes_count between imap and pop? I would like to have at least 50 imap processes ready, but we rarely have any more than 5 to 10 pop connections. Would be a shame to have 40+ pop login processes doing nothing most of the time.
For now did login_process_size = 96, but with an average of 100 to 200 and some rare ocassion of 300+ connections I am wondering what is a reasonable number for login_process_size.
On Tue, Dec 12, 2006 at 06:20:41PM -0500, Francisco Reyes wrote:
Is there a way to separate login_processes_count between imap and pop?
login_processes_count and login_max_processes_count can both be placed into the 'protocol pop3 {}' and 'protocol imap {}' sections of dovecot.conf
hmk
Hans Morten Kind writes:
login_processes_count and login_max_processes_count can both be placed into the 'protocol pop3 {}' and 'protocol imap {}' sections of dovecot.conf
Thanks for the info. Adjusted it to pop and imap at different values.
I am still a bit unclear on login_processes_count. Is this the number of spare processes?
If I expect a load average of 50 and a max of say 250 imap connections, what would be a good value for login_processes_count?
On Tue, 2006-12-12 at 18:20 -0500, Francisco Reyes wrote:
Any suggestions on sizing login_process_size and login_processes_count for a server expected to be doing 100 to 200 simultaneous connections?
Are you using SSL? It all depends on how much memory each OpenSSL connection takes, Dovecot itself doesn't take more than maybe 20k max. I've no idea about OpenSSL's memory usage.
Timo Sirainen writes:
Are you using SSL? It all depends on how much memory each OpenSSL connection takes, Dovecot itself doesn't take more than maybe 20k max. I've no idea about OpenSSL's memory usage.
Yes we offere SSL. What would be a good way to meassure? See how much each SSL connection takes?
On 18.12.2006, at 18.22, Francisco Reyes wrote:
Timo Sirainen writes:
Are you using SSL? It all depends on how much memory each OpenSSL connection takes, Dovecot itself doesn't take more than maybe 20k
max. I've no idea about OpenSSL's memory usage.Yes we offere SSL. What would be a good way to meassure? See how much each SSL connection takes?
Well, the whole setting exists only because I've wanted to be extra
cautious of not giving pre-login users possibility to eat all the
memory from the system. But as long as there are no security holes
(or bugs) in Dovecot, that won't happen anyway. So you could just as
well set it to something like 1 gigabyte, and you'd never notice
problems.
I don't know how to properly measure how much OpenSSL takes memory.
It probably depends on a lot of things. If the memory size setting is
too low, the login process will be killed. So as long as you don't
see any "login process killed" messages in log files, the value is
high enough..
participants (3)
-
Francisco Reyes
-
Hans Morten Kind
-
Timo Sirainen