public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Thousands of interfaces
@ 2006-10-31  9:25 Peter Hicks
  2006-10-31  9:31 ` David Miller
  2006-10-31 18:46 ` Michael Tokarev
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Hicks @ 2006-10-31  9:25 UTC (permalink / raw)
  To: linux-kernel

All,

I have a dual 3GHz Xeon machine with a 2.4.21 kernel and thousands (15k+) of
ipip tunnel interfaces.  These are being used to tunnel traffic from remote
routers, over a private network, and handed off to a third party.

Creating the interfaces takes longer and longer the more there are.  For the
first thousand or so interfaces, creation takes place at the rate of 40 per
second, later it drops to around 1 per second, then one every five seconds.

The tunnels are created thus:

  ip tunnel add $interface mode ipip remote $peer local $eth0_address
  ip addr add $eth0_address peer $lanip dev $interface
  ip link set $interface arp off up
  ip route add $remote_subnet dev $interface

where $interface is the name of the tunnel, $peer is the 'external'
interface on the remote router, $eth0_address is eth0's address on the
tunnel box, and $remote_subnet is the network we're tunneling.

Is it possible to speed up creation of the interfaces?  Currently it takes
around 24 hours.  Is there are more efficient way to handle a very large
number of IP-IP tunnels?  Would upgrading to a 2.6 kernel be of use?

Is there a userspace program which would handle this application better than
using interfaces?


Peter.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-31 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31  9:25 Thousands of interfaces Peter Hicks
2006-10-31  9:31 ` David Miller
2006-10-31 15:55   ` Ben Greear
2006-10-31 18:22   ` Stephen Hemminger
2006-10-31 21:36     ` David Miller
2006-10-31 18:46 ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox