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

    Cannot allocate memory

    General pfSense Questions
    3
    5
    870
    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.
    • T
      tomli
      last edited by

      Hi All,

      pfsense version 2.4.5 p1
      FRR package

      I use FRR to setup BGP connection with my ISP. They will advertise about 5000 routes ro my PFsense. My BGP connection is up and receive all routes. I use the below command to check it in vtysh console
      sh ip route summary
      Total: 5xxx

      In the pfsense console, I try to use the command netstat -nr | wc -l to check it. My pfsense get 1xx routes only. Sometimes, I run the command
      netstat -nr, I get the below error message
      "Re: netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory"

      Is it any route capacity in pfsene table, please advise.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm, does it only ever get <200 routes in the system table?

        That error message is associated with running netstat whilst routes are still being added to the table such that by the time it tries to display the routes there are more than the space it allocated memory for.
        However 5000 routes isn't that many, I would expect that to complete loading into the system table quite quickly.

        Steve

        1 Reply Last reply Reply Quote 1
        • T
          tomli
          last edited by tomli

          No, it display >300 routes (about 10 hours later). We reboot the server. We can see all routes in command nestat -nr. Cannot find the root cause.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            It takes 10h to add 300 routes?

            yon 0Y 1 Reply Last reply Reply Quote 0
            • yon 0Y
              yon 0 @stephenw10
              last edited by

              @stephenw10

              me too.
              link text

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