public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Ulrich Drepper <drepper@gmail.com>,
	linux-kernel@vger.kernel.org, jakub@redhat.com
Subject: Re: [PATCH] 2.6.16 - futex: small optimization (?)
Date: Fri, 31 Mar 2006 09:50:25 -0500	[thread overview]
Message-ID: <442D41B1.1070005@tmr.com> (raw)
In-Reply-To: <20060331060155.GA21975@elte.hu>

Ingo Molnar wrote:

>* Bill Davidsen <davidsen@tmr.com> wrote:
>
>  
>
>>>>>There are no such situations anymore in an optimal userlevel
>>>>>implementation.  The last problem (in pthread_cond_signal) was fixed
>>>>>by the addition of FUTEX_WAKE_OP.  The userlevel code you're looking
>>>>>at is simply not optimized for the modern kernels.
>>>>>          
>>>>>
>>>>What are you suggesting here, that the kernel can be inefficient as 
>>>>long as the user has a way to program around it?
>>>>        
>>>>
>>>What are you suggesting here, that FUTEX_WAKE_UP is a "user way to 
>>>program around" an inefficiency? If yes then please explain to me why 
>>>and what you would do differently.
>>>      
>>>
>>The point I'm making is that even if an application is "not optimized 
>>for modern kernels" or whatever, there's no reason to ignore 
>>inefficiencies. [...]
>>    
>>
>
>What are you suggesting here, that the implementation of FUTEX_WAKE_UP
>is "ignoring inefficiencies"? Please explain why and what you would do
>differently to solve that inefficiency.
>  
>
I am suggesting that "There are no such situations anymore in an optimal 
userlevel implementation" is not the right approach to the original 
post. What I would do differently is to evaluate the original suggestion 
to see if it would in fact be more efficient. Please read the original 
post and take it on merit, it's either an optimizationn or not, and 
obviously it's used even if not by some "optimal" user code.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


  reply	other threads:[~2006-03-31 14:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-28  7:37 [PATCH] 2.6.16 - futex: small optimization (?) Pierre PEIFFER
2006-03-28 10:05 ` Eric Dumazet
2006-03-28 15:02 ` Ulrich Drepper
2006-03-28 22:46   ` Bill Davidsen
2006-03-29 15:26     ` Ingo Molnar
2006-03-30 20:27       ` Bill Davidsen
2006-03-31  6:01         ` Ingo Molnar
2006-03-31 14:50           ` Bill Davidsen [this message]
2006-03-31 18:15             ` Ingo Molnar
2006-03-29 13:18   ` Pierre PEIFFER
2006-03-29 15:26     ` Eric Dumazet
2006-03-30 14:51       ` Pierre PEIFFER

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=442D41B1.1070005@tmr.com \
    --to=davidsen@tmr.com \
    --cc=drepper@gmail.com \
    --cc=jakub@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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