Netlink: Cannot allocate memory (solved)

Petr Šťastný petr at stastny.eu
Sat Dec 11 22:09:25 CET 2010


  All right. I solved this problem after hours of googling.

It is caused by the limit of enteries in IPv6 kernel routing table, 
which is defined in /proc/sys/net/ipv6/route/max_size and is 4096 by 
default. But we have more than 4096 IPv6 routes, so it crashed when 
adding 4097th entry into kernel table. But it also took down OSPF 
communication.

Maybe bird should check this limit and tell more interesting error 
message? Thanks.

Petr

Dne 10.12.2010 14:47, Petr Šťastný napsal(a):
> Hello,
>
> I have bird6 (1.2.5) running OSPF and BGP. Everything works perfectly 
> until I enable BGP protocol:
>
> bird> enable XXX
>
> 10-12-2010 14:37:52 <INFO> Enabling protocol XXX
> 10-12-2010 14:37:54 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:37:54 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:37:54 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:37:54 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:37:54 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:37:54 <WARN> ...
> 10-12-2010 14:38:02 <ERR> OSPF: Socket error: Network is unreachable
> 10-12-2010 14:38:12 <ERR> OSPF: Socket error: Network is unreachable
> 10-12-2010 14:38:12 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:12 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:12 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:12 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:12 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:12 <WARN> ...
> 10-12-2010 14:38:22 <ERR> OSPF: Socket error: Network is unreachable
> 10-12-2010 14:38:25 <WARN> Netlink: No such process
> 10-12-2010 14:38:25 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:25 <WARN> Netlink: No such process
> 10-12-2010 14:38:25 <WARN> Netlink: Cannot allocate memory
> 10-12-2010 14:38:25 <WARN> Netlink: No such process
>
> It is interesting that I also have another router with bird6 running 
> OSPF (the same network) and BGP peer without any problem.
>
> The router has 5 GB of free memory.
>
> bird> show memory
> BIRD memory usage
> Routing tables:     46 kB
> Route attributes: 4952  B
> Protocols:          72 kB
> Total:             151 kB
>
> Any idea?
>
> Thanks
>
> Petr Stastny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20101211/e1592ac1/attachment-0001.html>


More information about the Bird-users mailing list