On Wed, Feb 24, 2010 at 09:29:46AM -0800, Darren Hart wrote: > Nick Piggin wrote: > > >When writing multiprocessor scalable software, threads should often be > >avoided. They share so much state that it is easy to run into > >scalability issues in the kernel. So yes it would be really nice to > >have userspace RCU available in a process-shared mode. > > A bit off topic, but I'm interested in what you feel some of these > scalability issues are. Is it mostly bouncing this shared context > from one CPU to the next and the related cache effects, or is there > something more you are referring to? Just in general shared state is almost always going to be more costly in SMP than non-shared. >From VM to files and fs state to signals and timers and process accounting. And this also carries up to libc, and critical user code like the heap allocator. Linux is usually pretty good, a lot due to RCU, but there are still contention points. Andrew had investigated this a lot (in relation to samba) and had a good talk on it, but the slides don't really do it justice. http://www.samba.org/~tridge/talks/threads.pdf -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html