Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN performance boost observation

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robi
      last edited by

      I've noticed drastic improvements on file transfers through OpenVPN, between two sites using the same Supermicro A1SRi-2758F systems, running both pfSense 2.3.2 64-bit, by just adding these lines to both client and server:

      sndbuf 0;
      rcvbuf 0;
      fast-io;
      

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        –fast-io
            (Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation. The purpose of such a call would normally be to block until the device or socket is ready to accept the write. Such blocking is unnecessary on some platforms which don't support write blocking on UDP sockets or TUN/TAP devices. In such cases, one can optimize the event loop by avoiding the poll/epoll/select call, improving CPU efficiency by 5% to 10%.

        This option can only be used on non-Windows systems, when –proto udp is specified, and when --shaper is NOT specified.

        1 Reply Last reply Reply Quote 0
        • R
          robi
          last edited by

          Well, site-to-site connections provided by OpenVPN on pfSense certainly qualify for that option.
          Plus, the option can be used on pfSense as server, while Windows clients can stay as they are (without this option).

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.