openvpn icon indicating copy to clipboard operation
openvpn copied to clipboard

bulk-mode

Open stoops opened this issue 5 months ago • 1 comments

Bulk mode - Feature request

Blog post: https://fossjon.com/2025/08/05/modifying-openvpn-source-code-to-allow-for-bulk-reads-max-mtu-and-jumbo-tcp-for-highly-improved-performance/

stoops avatar Aug 06 '25 20:08 stoops

Edit/Update: I spent several days and reworked the bulk + mtio mode code a little bit and am now getting almost full line speed that my wifi / internet connection will allow for which is much better/nicer to use as my main network wide TCP VPN. I don't have an official comparison speed test yet as I don't have a wired client available here at home. I was able to remap the tun read/write file descriptors on each of the multiple threads and create a an extra management thread which is dedicated to bulk reading and filling up the each of the threaded bulk context buffers and then signalling them all for parallel processing and socket transmission with much larger payload sizes without any thread locks needed. The code seems to be working way better now as this was the first time for me going through the code base and finding out the edge cases here and there! Thanks again all for the project work. :)

stoops avatar Aug 28 '25 00:08 stoops