FYI,
Forwarded from netdev.
Looks like IPv6 addresses have some rather low limits
numbers, like only 8K, whereas IPv4 60 000 addresses
are added smoothly.
---------- Forwarded message ----------
From: Robert Iakobashvili <cor...@gm...>
Date: Jun 25, 2007 10:47 AM
Subject: Re: Scaling Max IP address limitation
To: dj...@ro...
Cc: lin...@vg..., ne...@vg..., Andrew
Morton <ak...@li...>
David,
On 6/25/07, David Jones <dj...@ro...> wrote:
> >> > I am trying to add multiple IP addresses ( v6 ) to my FC7 box on eth0.
> >> > But I am hitting a max limit of 4000 IP address . Seems like there
> >> is a
> >> > limiting variable in linux kernel (which one? ) that prevents from
> >> > adding more IP addresses than 4096. What do I need to change in Linux
> >> > kernel ( and then recompile ) to be able to add more IP addresses
> >> than 4K addresses per system? ..
> >
> I am using the "ip add " command looping sequentially up until RTNETLINK
> starts refusing to add more IP addresses.
> How are you adding via Netlink interface ?
Yes.
OK. Now it looks that I am reproducing something.
Running curl-loader with 60K.conf (edit the name of interface) configuration:
#ulimit -n 80000
#curl-loader -f ./conf-examples/60K.conf -w
it adds successfully 60 000 secondary IPv4 addresses as seen by
#ip addr | wc -l
When I tryed adding IPv6 addresses, using ipv6.conf with addresses
range edited:
IP_ADDR_MIN= 2001:db8:fff5:1::1
IP_ADDR_MAX= 2001:db8:fff5:ffff::1
I am getting after initial successes some errors:
"rtnl_talk(): RTNETLINK answers: Cannot allocate memory"
and
#ip addr | wc-l is 8194.
8K addresses added and no more? It might be a memory issue. Y can dig
into the code and look into the allocation process and limits on the
kernel memory for IPv6.
The physical memory on my computer is 480 MB.
kernel is vanilla 2.6.20.7.
Try to see, what happens, when you increase the memory on your comp,
if an option.
--
Sincerely,
Robert Iakobashvili,
coroberti %x40 gmail %x2e com
...........................................................
http://curl-loader.sourceforge.net
A web testing and traffic generation tool.
|