mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Erik Bosman <ejbosman@cs.vu.nl>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>,
	Andrea Arcangeli <andrea@cpushare.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] x86: Implement prctl PR_GET_TSC and PR_SET_TSC
Date: Sat, 12 Apr 2008 14:12:46 -0700	[thread overview]
Message-ID: <20080412141246.3b4c127c@laptopd505.fenrus.org> (raw)
In-Reply-To: <Pine.GSO.4.56.0804122252110.21756@keg.few.vu.nl>

On Sat, 12 Apr 2008 23:05:44 +0200 (CEST)
Erik Bosman <ejbosman@cs.vu.nl> wrote:

> 
> 
> On Sat, 12 Apr 2008, H. Peter Anvin wrote:
> 
> > Arjan van de Ven wrote:
> > >
> > > Hi,
> > >
> > > why did you make this a configuration option? In general it's not
> > > a good idea to make userspace visible ABI's (PR_* clearly is one
> > > of these) a CONFIG option unless there's some HUGE space saving
> > > going on. I don't see that here....
> > >
> > > So can you explain your rationale for making this a config option?
> > >
> 
> The ABI itself is not a config option (see patch 1/3.)
> If the x86 implementation patch isn't applied, prctl() will
> return -EINVAL, just like most other PR_* options, which are
> only implemented on specific architectures, take
> (PR_GET/PR_SET_ENDIAN) as an example.

that doesn't say why you made it an option still :)
Something like this (which looks like generally useful functionality)
should just be there unless there is a really high cost....

> 
> >
> > I also saw no mention about performance impact, which need to be
> > considered whenever *anything* is proposed to be inserted into a hot
> > path.  It may be (heck, *should be*) that the performance impact
> > isn't measurable, but that needs to be positively established.
> >
> 
> This is why I made the implementation part configurable, although I
> don't think the overhead will be very high since it seems to me that
> the __switch_to_xtra function was designed explicitly to keep unusual
> options out of the hot path.

so you normally don't have performance overhead unless you use the feature....
that's really good!
It also means that there wouldn't be a need for this to be a config option, but
instead it can just always be there.. saving us a ton of ifdefs as well as the burden
of having an extra config option.

-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

  reply	other threads:[~2008-04-12 21:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11 16:55 Erik Bosman
2008-04-12 19:49 ` Arjan van de Ven
2008-04-12 20:48   ` H. Peter Anvin
2008-04-12 21:05     ` Erik Bosman
2008-04-12 21:12       ` Arjan van de Ven [this message]
2008-04-13 21:51     ` Erik Bosman
2008-04-13 22:02       ` H. Peter Anvin
2008-04-14  8:42         ` Ingo Molnar
2008-04-13 22:24 ` [PATCH 2/3-REVISED] " Erik Bosman
2008-04-14  3:58   ` Arjan van de Ven
2008-04-14  8:48     ` Ingo Molnar
2008-04-14 10:57 ` [PATCH 2/3] " Michael Kerrisk
2008-04-14 11:59   ` Erik Bosman
2008-04-14 12:21     ` Michael Kerrisk
2008-04-26 22:47     ` dean gaudet
2008-04-26 22:51       ` H. Peter Anvin
2008-04-26 23:14         ` dean gaudet
2008-04-26 23:46           ` H. Peter Anvin
2008-04-27  0:29             ` dean gaudet
2008-04-27  0:37               ` H. Peter Anvin
2008-04-27  0:47                 ` David Miller
2008-04-15  7:29 ` Andrew Morton
2008-04-15  7:46   ` Ingo Molnar

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=20080412141246.3b4c127c@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=andrea@cpushare.com \
    --cc=ejbosman@cs.vu.nl \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®