Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2014 11:32:36 +0200
From:      Ian FREISLICH <ianf@clue.co.za>
To:        Hiroki Sato <hrs@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory
Message-ID:  <E1WGmTE-0000nr-Us@clue.co.za>
In-Reply-To: <20140221.182037.200669298555875226.hrs@allbsd.org>
References:  <20140221.182037.200669298555875226.hrs@allbsd.org> <20140221.172017.821481836359198829.hrs@allbsd.org> <E1WGkzK-0000gb-E2@clue.co.za> <E1WGltZ-0000kf-1A@clue.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
Hiroki Sato wrote:
>  Hm, how about the attached one?
> 
>  I think the cause is just a race when length of the sysctl's output
>  is changed in kernel after the buffer allocation in userspace, not
>  memory shortage.  Size of the routing table can quickly change.

You are correct.  It's growing at about 9000 entries per second (I
wish it were faster).

This is what the output looks like now.  I guess I'm not the average
case.

[firewall1.jnb1] ~ # netstat -rn |wc -l
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: 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 -l
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
  332293
[firewall1.jnb1] ~ # netstat -rn |wc -l
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
  340368
[firewall1.jnb1] ~ # netstat -rn |wc -l
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
  374400
[firewall1.jnb1] ~ # netstat -rn |wc -l
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: Routing table grew, retrying
netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory
       1
[firewall1.jnb1] ~ # netstat -rn |wc -l
  480073

Ian

-- 
Ian Freislich



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1WGmTE-0000nr-Us>