Hiroki Sato wrote:
ia Hiroki Sato wrote:
ia Hm, how about the attached one?
ia
ia I think the cause is just a race when length of the sysctl's output
ia is changed in kernel after the buffer allocation in userspace, not
ia memory shortage. Size of the routing table can quickly
Ian FREISLICH i...@clue.co.za wrote
in e1wgmte-nr...@clue.co.za:
ia Hiroki Sato wrote:
ia Hm, how about the attached one?
ia
ia I think the cause is just a race when length of the sysctl's output
ia is changed in kernel after the buffer allocation in userspace, not
ia memory
insertion.
[firewall1.jnb1] ~ $ netstat -rn |wc -l
netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory
1
[firewall1.jnb1] ~ $ netstat -rn |wc -l
480446
Is there a sysctl that controls this? There's lots of free memory
(14GB). I've tuned other limits to stop dummynet crashing
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
ia1
ia [firewall1.jnb1] ~ $ netstat -rn |wc -l
ia 480446
Perhaps does
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
ia1
ia [firewall1.jnb1] ~ $ netstat -rn |wc -l
ia 480446
Perhaps does the attached patch fix this?
Sadly, not.
Ian
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
ia1
ia [firewall1.jnb1] ~ $ netstat -rn |wc -l
ia 480446
Perhaps does the attached patch
, but over a minute to
ia ia update the kernel routing table.
ia ia
ia ia I'm now getting this error until zebra completes route insertion.
ia ia
ia ia [firewall1.jnb1] ~ $ netstat -rn |wc -l
ia ia netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory
ia ia1
ia ia [firewall1.jnb1
: Routing table grew, retrying
netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory
1
[firewall1.jnb1] ~ # netstat -rn |wc -l
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
314032
[firewall1.jnb1] ~ # netstat -rn |wc