lkml.org 
[lkml]   [2000]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject"Super" IP aliases?
Hello,

I have a need to run thousands of IP addresses on one host. (It's
running apache.)

Unfortunately, when I configure the host for more than about
2000 ip aliases, the machine starts to bog down. At about 3000
aliases, the system spends about 50 percent of the time in
the kernel. Since the alias hash table only holds 256 entries,
I surmise that the kernel is spending its time looking to
see if it should answer the IP addresses.

What I'm considering: somehow, making a single ip alias
interface serve an entire class C network when a special
interface flag is set. Has anyone worked with something like that?

It seems this would only work for TCP. I'd also have to ensure
that the getsockname() address came from the IP address in
the SYN packet itself, not the interface address. If someone
could point me in the right direction, I'd greatly appreciate
it.

It occurs to me that I could be creating a lot of work for
nothing, as it appears the loopback interface already exhibits the required
behavior. On interface serves 127.0.0.0/8. Can this be done
with extra loopback interfaces?

Thanks for any info.

-Scott

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:1.990 / U:1.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site