Navigation

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

    OpenVPN CPU0 or CPU1

    OpenVPN
    2
    4
    123
    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.
    • G
      gordon last edited by

      Hi,

      I understand OpenVPN Server and Client only using one core on the CPU.

      How is Pfsense decide witch CPU/core it will use?

      I was thinking that maybe CPU0/Core0 have the highest load, and it will be smart to run OpenVPN Server/Client on CPU1/CORE1 ?

      I can see that right now its run on CPU0/CORE0, is it possible to configure what core it shall run on?

      How is pfsense optimize the generel load between CPU0 and CPU1 ?

      1 Reply Last reply Reply Quote 0
      • KOM
        KOM last edited by

        Everything you mentioned is a function of the operating system -- FreeBSD. I very much doubt that Netgate is playing around with thread/process management and CPU affinity when that's managed by the OS.

        Look at the cpuset command in FreeBSD, which lets you tie a process to a core.

        G 1 Reply Last reply Reply Quote 0
        • G
          gordon @KOM last edited by gordon

          @KOM I understand, If I create two VPN Open Servers on the same server and have high load on them FeeBSD will move one to CPU0 and other to CPU1 to share the load effecient?

          1 Reply Last reply Reply Quote 0
          • KOM
            KOM last edited by

            Probably. I don't pretend to know how FreeBSD handles that but in general, yes. An OS will use the resources it has and try to spread the load over as many cores as it has.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post