Stared at the code for a bit, and spent some thoughts on it.  Makes sense.

I haven't actually tested this beyond "BB is green".  The server testbed
will give it a bit of testing, but this is not really meaningful either
(because I have 3 clients connected at maximum)...

If the environment is very tight on memory, reducing --max-clients is
way more effective (and shrinks the hash map accordingly).

Your patch has been applied to the master and release/2.7 branch
(scalability, low impact).

commit 7b5ebf7c447db16953c9541fdd00c7aa56124fc5 (master)
commit 216c76324d2ee9221346cdfb25891e634aff2b9e (release/2.7)
Author: Arne Schwabe
Date:   Wed Mar 25 13:45:26 2026 +0100

     Increase default size of internal hash maps to 4 * --max-clients

     Signed-off-by: Arne Schwabe <[email protected]>
     Acked-by: Antonio Quartulli <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1563
     Message-Id: <[email protected]>
     URL: 
https://www.mail-archive.com/[email protected]/msg36268.html
     Signed-off-by: Gert Doering <[email protected]>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to