[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53808B51.4050308@mojatatu.com>
Date: Sat, 24 May 2014 08:06:41 -0400
From: Jamal Hadi Salim <jhs@...atatu.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
sowmini varadhan <sowmini05@...il.com>
CC: Niels Möller <nisse@...thpole.se>,
netdev <netdev@...r.kernel.org>, Jonas Bonn <jonas@...thpole.se>
Subject: Re: What's the right way to use a *large* number of source addresses?
On 05/23/14 10:14, Eric Dumazet wrote:
> Use the batch mode, and it will be much faster than ifconfig, as
> ifconfig does not support this mode (you need one fork()/exec() per IP
> address)
>
> ip -batch filename
>
The address dumping algorithm is a very likely contributor as well.
It tries to remember indices and then skips on the next iteration
all the way to where it left off.... has never been a big deal until
someone tries a substantial number of addresses.
cheers,
jamal
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists