Re: regression: sysctl_check changes in 2.6.24 are O(n) resultingin slow creation of 10000 network interfaces

From: Alan Cox
Date: Mon Jan 07 2008 - 16:33:49 EST


> I think that would be a better option than to complicate sysctl.c
> for this uncommon case.

What is so complicated about hashing the entries if you are checking for
duplicates when debugging. You can set the hash function to "0" and the
array size to 1 when the debug is off and it'll all go away nicely
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/