Thank you for your reply Arne.

I didn't want to interrupt the regular OpenVPN development workflow process
here with some theoretical development questions. I still need to clean up
the code so that it would set and respect a user's option to turn this
feature on (1 client-side setting, multi server-side settings) and to also
not automatically override important variables/values/methods/functions
within the rest of the code base either (first time going through the
code). I also need to see if any better code optimizations could be made as
I'm not an expert on this code base like the others here may be.

Is there any development setup guide I could follow in the future which
would allow me to submit a pull request to the OpenVPN codebase in an
official manner?

Thanks again for your work and time,
Jon Chiappetta



On Wed, Aug 6, 2025 at 1:34 AM Arne Schwabe <a...@rfc2549.org> wrote:

> Am 06.08.25 um 05:46 schrieb Jon Chiappetta via Openvpn-devel:
> > Hi,
> >
> > This is my first time posting to a mailing list. I worked on a possible
> > performance proof-of-concept modification to the OpenVPN source code.
> > The code is in rough shape as I just wrote it this long weekend but I
> > wanted to see if anyone had any interesting feedback for such work.
> >
> > 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/ <https://fossjon.com/2025/08/05/modifying-openvpn-source-
> > code-to-allow-for-bulk-reads-max-mtu-and-jumbo-tcp-for-highly-improved-
> > performance/>
> >
>
>
>  > Max MTU which now matches the rest of your network clients (1500 bytes)
>
> I have no idea what this means. OpenVPN always supported different MTU
> sizes and MTU 1500 is standard.
>
>  > Bulk reads from the tun interface (6 reads)
>  > TCP connection protocol only (single jumbo write transfers)
>  > Performance improvements now allows for (6 reads x 1500 bytes == 9000
> bytes)
>
>
> So basically, from your explanation the main thing is to try to
> write/read multiple packets in one batch on the TCP socket instead of
> just reading/writing a single packet.  I can see that this improves
> performance.
>
> Do you have any idea how much this actually improves performance? Your
> blog post shows a speedtest with 500 MBit/s but that is not actually
> saying much. In my own test setup, the current OpenVPN is capable over a
> Gigabit, a before/after from your test setup would nice to see.
>
> > POC Diff: https://github.com/stoops/openvpn/compare/main <https://
> > github.com/stoops/openvpn/compare/main>…mods
>
> Might be good enough for a POC but from quick glance it looks like there
> needs to cleanup make this an actual commit.
> >
> > If this is the wrong place I apologize in advance,
> > Thanks for your time,
>
> No, this is the right place.
>
> Arne
>
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to