From: Eric Dumazet <dada1@cosmosbay.com>
To: Ulrich Drepper <drepper@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: first little problem with private futexes
Date: Sun, 20 May 2007 21:13:44 +0200 [thread overview]
Message-ID: <46509DE8.3060308@cosmosbay.com> (raw)
In-Reply-To: <a36005b50705201201y724ac400u5581df86c62d9de2@mail.gmail.com>
Ulrich Drepper a écrit :
> On 5/20/07, Eric Dumazet <dada1@cosmosbay.com> wrote:
>> > 1. do nothing, always use the shared futexes. Not very attractive IMO
>>
>> Why do you find this non attractive ?
>>
>> How is it performance critical ?
>
> You should know better than any other that the problem is not that the
> problem itself is the only one affected. If threads terminate all
> other programs and threads are affected since the global locks for the
> shared futexes are needed. That's the case I'm concerned about. It's
> not really about a single app creating many many threads over and over
> again. It's about many apps which do use threads (and that number
> will have to rise) starts and stop threads at a reasonable rate. It's
> just one more unnecessary point of contact between concurrently
> running apps.
Well, current private futex code still use global locks (one common hash table
were all waited futexes are queued, private or shared)
'Only' mmap_sem and inode/mm refcounter inc/dec are avoided.
My proposal of having separate namespace was hold, in order to get the
'private futexes' accepted in kernel.
So for the moment, I am not sure glibc should try to optimize CLEARTID operation.
prev parent reply other threads:[~2007-05-20 19:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-20 18:39 first little problem with private futexes Ulrich Drepper
2007-05-20 18:53 ` Eric Dumazet
2007-05-20 19:01 ` Ulrich Drepper
2007-05-20 19:13 ` Eric Dumazet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46509DE8.3060308@cosmosbay.com \
--to=dada1@cosmosbay.com \
--cc=akpm@linux-foundation.org \
--cc=drepper@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).