linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: Benjamin LaHaise <bcrl@redhat.com>
Cc: Andi Kleen <ak@suse.de>, Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Better CLONE_SETTLS support for Hammer
Date: Wed, 05 Mar 2003 21:47:45 -0800	[thread overview]
Message-ID: <3E66E101.8050009@redhat.com> (raw)
In-Reply-To: <20030306002945.A31972@redhat.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benjamin LaHaise wrote:
> using the TLS segment everywhere slows everything down
> a tiny bit.  Don't do it for unthreaded programs.

You completely (still!) fail to understand the issue.  How can I take
somebody who suggest using the stack as a pseudo thread register
serious?  You don't see the impact of this so you don't recognize who
absolutely absurd this is.

Wrt inthreaded apps: either TLS is used everywhere or not at all.
Single threaded code uses library code which relies on TLS.  And since
TLS is part of the ABI there is not question about the "not at all".
The remaining issue is how to do it with the least impact.  For this
I've proposed a method which does this (according to Andi's
measurements) with the least impact.

And nobody forces you to use the standard runtime environment.  Go on,
create your own.  Then you won't have any penalties except one single
'if' in the context switching code which you hopefully can live with.
Mark it with unlikely() for all I care.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+ZuEB2ijCOnn/RHQRAnlwAJ4kcZ7FbESC+FIsOyn6Ia0wN8FskgCgvh/K
SR1Ki1CnTe2QXq0Gn7TsvAY=
=jJ0e
-----END PGP SIGNATURE-----


  reply	other threads:[~2003-03-06  5:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-05 18:55 Better CLONE_SETTLS support for Hammer Ulrich Drepper
2003-03-05 19:06 ` Andi Kleen
2003-03-05 19:25   ` Ulrich Drepper
2003-03-05 21:19     ` Andi Kleen
2003-03-05 19:32   ` Ulrich Drepper
2003-03-05 21:21     ` Andi Kleen
2003-03-05 23:04       ` Ulrich Drepper
2003-03-06  1:05         ` Andi Kleen
2003-03-06  3:53           ` Ulrich Drepper
2003-03-06  4:14           ` Ulrich Drepper
2003-03-06 10:27             ` Andi Kleen
2003-03-06 18:58               ` Ulrich Drepper
2003-03-06 19:09                 ` Andi Kleen
2003-03-06  2:08         ` Benjamin LaHaise
2003-03-06  3:52           ` Ulrich Drepper
2003-03-06  5:29             ` Benjamin LaHaise
2003-03-06  5:47               ` Ulrich Drepper [this message]
2003-03-06  5:33   ` H. Peter Anvin

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=3E66E101.8050009@redhat.com \
    --to=drepper@redhat.com \
    --cc=ak@suse.de \
    --cc=bcrl@redhat.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).