Re: [PATCH 0/2] convert mmap_sem to a scalable rw_mutex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Esben Nielsen a écrit :


On Sat, 12 May 2007, Peter Zijlstra wrote:

On Sat, 2007-05-12 at 11:27 +0200, Esben Nielsen wrote:

On Fri, 11 May 2007, Peter Zijlstra wrote:


I was toying with a scalable rw_mutex and found that it gives ~10% reduction in
system time on ebizzy runs (without the MADV_FREE patch).


You break priority enheritance on user space futexes! :-(
The problems is that the futex waiter have to take the mmap_sem. And as
your rw_mutex isn't PI enabled you get priority inversions :-(

Do note that rwsems have no PI either.
PI is not a concern for mainline - yet, I do have ideas here though.


If PI wasn't a concern for mainline, why is PI futexes merged into the mainline?

If you really care about futexes and mmap_sem, just use private futexes, since they dont use mmap_sem at all.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux