Re: netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory

From: Hiroki Sato <hrs_at_FreeBSD.org>
Date: Fri, 21 Feb 2014 17:20:17 +0900 (JST)
"Ian FREISLICH" <ianf_at_clue.co.za> wrote
  in <E1WGkzK-0000gb-E2_at_clue.co.za>:

ia> Hi
ia>
ia> While recieving my routing table I used to be able to check how far
ia> it got by counting the output netstat -rn.  It takes about 2 seconds
ia> to recieve the routes from my route-server, but over a minute to
ia> update the kernel routing table.
ia>
ia> I'm now getting this error until zebra completes route insertion.
ia>
ia> [firewall1.jnb1] ~ $ netstat -rn |wc -l
ia> netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory
ia>        1
ia> [firewall1.jnb1] ~ $ netstat -rn |wc -l
ia>   480446

 Perhaps does the attached patch fix this?

-- Hiroki

Received on Fri Feb 21 2014 - 07:23:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:47 UTC