Messages in this thread | | | Date | Tue, 19 Jun 2001 18:24:22 -0700 | From | Ben Greear <> | Subject | Re: [VLAN] Re: Should VLANs be devices or something else? |
| |
Marcell Gal wrote: >
> I remember > /proc/sys/net/ipv4/conf/ > was broken for about >300 devices. I do not know how's it today.
My VLAN code creates an entry for every vlan in /proc/net/vlan/ too, and it seems to quit creating entries after about 250 or so. It's read-only info, so it doesn't seem to do too much harm.
I think there must be an 8-bit limit somewhere in the proc-fs.
> > Adding the hashed lookup for devices took the exponential curve out of > > ip and ifconfig's performance, btw. > > n^2 for creating n devices (in the unfortunate increasing or random > order), > (not 2^n), I guess.
It definately isn't fast, but then again, it is fast enough when you only have 500 or so interfaces. For the wierdos that want more, we can just wait a little longer... :)
I'll offer the hashed-device-lookup patch separately on my web site so it can be used if needed...
Ben
-- Ben Greear <greearb@candelatech.com> <Ben_Greear@excite.com> President of Candela Technologies Inc http://www.candelatech.com ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |