Navigation

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

    Interrupt processor affinity

    General pfSense Questions
    2
    2
    466
    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.
    • J
      jlauser last edited by

      I was poking around in my firewall yesterday (2.3.4 on i386/nanobsd), and I noticed that when under heavy load (moving data between internal subnets), the CPU utilization as reported by top would show right around 50% interrupt, but pretty much everything else completely idle. This suggested to me that the routing functionality was only taking advantage of one of my CPU's two cores. Switching to top -SH, it became obvious that all of the interrupts from all of the nics were only being handled by CPU0. Some poking around online pointed me to cpuset, where I verified my findings.

      I then used cpuset to pin one of the interrupt handlers to CPU1 and immediately saw the other CPU core take on load and the maximum throughput through the firewall jumped by 70-80%.

      So… this raises some questions in my mind...

      • Why was my system doing this?

      • Is what I did (use cpuset to force processor affinity) an appropriate fix?

      • Is this a bug?

      Any insight would be appreciated.

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

        All of the NIC's interrupted pinned to the same CPU is a strange setup. Could be more of a corner case than a bug, but it does sound undesirable.

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

        Products

        • Platform Overview
        • TNSR
        • pfSense
        • Appliances

        Services

        • Training
        • Professional Services

        Support

        • Subscription Plans
        • Contact Support
        • Product Lifecycle
        • Documentation

        News

        • Media Coverage
        • Press
        • Events

        Resources

        • Blog
        • FAQ
        • Find a Partner
        • Resource Library
        • Security Information

        Company

        • About Us
        • Careers
        • Partners
        • Contact Us
        • Legal
        Our Mission

        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

        Subscribe to our Newsletter

        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

        © 2021 Rubicon Communications, LLC | Privacy Policy