Page 1 of 1

maxbans and maxbanlength settings

Posted: Sat Feb 04, 2006 1:11 pm
by roccia
Hello! I'd like to ask you a question about the settings ::maxbans and ::maxbanlength. Increasing these variables does the server performance decrease noticeably? Where does these bans get stored? Is it possible to increase ::maxbans to 240 and ::maxbanlength to 8k, without seriously affecting the ircd performances?
How much would this affect the ircd ram consumption?
Are these buffers statically allocated? I.e. if only one channel has 240 banned users, do all the channels have to allocate 240 ban slots, or they do allocate only the needed buffers?

Posted: Sat Feb 04, 2006 1:36 pm
by Syzop
They are dynamicaly allocated.

RAM-wise.. unless you have more than thousand channels (which could be true, of course), it probably isn't too interesting (well, you can do the math, though it's slightly more than simply 1000*8k=8M, just count on 10M ;p). And as you can see, even with thousand channels it's not that much (and we are assuming the banlist is completely full for all of them).

But, CPU-wise, yes, it probably does affect the ircd and it probably _can_ affect it quite a bit if abused... After all, 60 -> 240 bans means 4 times as much checking (for a full banlist, of course).
Note though, that bans are only checked for local users. But do note that they are checked for every channel message from a (local) regular user (no voice, op, etc), plus on-join and a couple of others of course, but on-msg is usually most often.

Posted: Sat Feb 04, 2006 2:04 pm
by roccia
thanks