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

Cannot allocate memory

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 3 Posters 911 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.
  • T
    tomli
    last edited by Feb 3, 2021, 12:44 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Feb 3, 2021, 12:58 PM

      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 Feb 4, 2021, 5:08 AM Feb 4, 2021, 5:07 AM

        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
        • S
          stephenw10 Netgate Administrator
          last edited by Feb 4, 2021, 3:58 PM

          It takes 10h to add 300 routes?

          Y 1 Reply Last reply Feb 21, 2021, 1:35 AM Reply Quote 0
          • Y
            yon 0 @stephenw10
            last edited by Feb 21, 2021, 1:35 AM

            @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.
              This community forum collects and processes your personal information.
              consent.not_received