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

    TNSR CPU utilization on SG-5100

    TNSR Feedback
    2
    8
    2.1k
    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
      gabacho4 Rebel Alliance
      last edited by

      I am in the process of setting up the latest TNSR version on an SG-5100. Am in the process of learning the ins and outs of TNSR so the configuration is very basic right now. I have one interface dedicated to the OS, and then the rest of the interfaces are allotted to TNSR. Aside form the WAN interface, I have configured a primary LAN (10.0.2/0/24) on one interface and a secondary LAN (10.0.20.0/24) on another interface. A couple simple NAT rules, DHCP on both interfaces, and that's about it. Just ran top and noticed that vpp_main is utlizing ~25% of my CPU potential (i.e. 1 of 4 cores). Is this normal behavior? I don't think I've done enough to screw something up yet. :) Thanks!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        That is completely normal. The dataplane will always consume 100% of one CPU core

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 1
        • G
          gabacho4 Rebel Alliance
          last edited by

          Outstanding! Thanks for the reassurance that I haven't bjorked something already!

          1 Reply Last reply Reply Quote 1
          • G
            gabacho4 Rebel Alliance
            last edited by gabacho4

            Follow on question - is the dataplane activity always using 100% of the core (regardless of load) or is the core merely 100% reserved for the dataplane and utilized as needed? Hope that makes sense. If the former, would that cause any degradation of the core over time after constantly being hit at 100%?

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              It's the former, and as far as I'm aware there shouldn't be any detrimental effects other than possibly heat. But I run it on a couple SG-5100s for testing and they barely get warm to the touch. I don't push them very hard, though.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • G
                gabacho4 Rebel Alliance
                last edited by

                Thanks as always for the response @jimp. I wasn’t overly concerned. Just curious how it all works.

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  It's not 100% the same but think kind of like the old polling option in pfSense. Rather than wait for hardware interrupts, it's always running a tight loop looking for data to process.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 1
                  • G
                    gabacho4 Rebel Alliance
                    last edited by

                    That makes a lot of sense. A system, or person for that matter, waiting to be told to work will never be as responsive as one that is at the ready to pounce.

                    1 Reply Last reply Reply Quote 0
                    • G gabacho4 referenced this topic on
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.