Re: REGRESSION: Performance regressions from switching anon_vma->lock to mutex

From: Linus Torvalds
Date: Wed Jun 15 2011 - 17:52:12 EST




Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
>removing
>that sysconf() wreckage closed the gap considerably (needing to know
>the
>number of cpus to optimize locking sounds like a trainwreck all of its
>own, needing it _that_ often instead of just once at startup is even
>worse).

Yeah, I think it's ridiculous to say that glibc is not doing something stupid and that it's a problem with kernel interfaces.

Do the proc file parsing once and cache the result in a static variable. Doing it over and over again is just crazy.

Adding new system calls because glibc is crazy is insane.

Linus

--
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/