Re: [PATCH 1/3] sysfs directory scaling: rbtree for dirent name lookups
From: Octavian Purdila
Date: Tue Nov 03 2009 - 11:41:51 EST
On Tuesday 03 November 2009 18:07:15 you wrote:
> > > What kind of test are you doing to reproduce this?
> > Its curious because in my tests the biggest problems come from
> > kernel/sysctl.c (__register_sysctl_paths) consuming 80% of cpu
> > in following attempt to create 20.000 devices
> > (disable hotplug before trying this, and ipv6 too !)
> > modprobe dummy numdummies=20000
> > I believe we should address __register_sysctl_paths() scalability
> > problems too.
> But registering 20000 devices is a far different problem from using
> those 20000 devices :)
> I think the "use the device" path should be the one we care the most
> about fixing up, as that is much more common than the register path for
> all users.
For sysctl in general probably, but I would argue that for dynamic network
interfaces (ppp and other sorts of tunnels) the "use" and "register" paths are
not that unbalanced.
For our case where we use up to 128K interfaces, sysctl entries per network
interface is pretty much unusable - but I agree that is not a very common case
However  is not so far fetched.
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/