All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: xen-devel@lists.xensource.com, Konrad Wilk <konrad.wilk@oracle.com>
Subject: Re: vsyscalls may be going away... impact on Xen time performance on Linux in the future?
Date: Thu, 09 Jun 2011 15:08:50 -0700	[thread overview]
Message-ID: <4DF14472.7050603@goop.org> (raw)
In-Reply-To: <070733f8-c7aa-4543-85dd-d353088b0e20@default>

On 06/09/2011 02:55 PM, Dan Magenheimer wrote:
> Hmmm...
>
> It appears that Xen time mechanisms that use vsyscall may be
> getting slower...
>
> "This is a significant performance penalty (~220ns here) for
> all vsyscall users, but there aren't many left."
>
> http://lwn.net/Articles/446220/ 
>
> I honestly don't remember all the details myself anymore,
> but I think this means that user apps in Xen PV domains
> that call gettimeofday a *lot* may be in for a bit of
> a shock when they move to a 3.x kernel in the future.
> (Many enterprise apps do things like timestamp transactions,
> which can lead to 10s of thousands of gettimeofday's
> per second.)

He's talking about vsyscall, but not vdso.  vsyscall mechanism is the
old one where kernel-provided code was mapped into userspace at fixed
addresses which were part of the ABI.  Its only used by very old
versions of glibc.

The newer vdso mechanism provides a full shared object, which contains
symbols for the entrypoints so they don't need to be a fixed addresses
any more.

They're functionally equivalent, so there's no loss of performance from
dropping vsyscalls.

    J

  reply	other threads:[~2011-06-09 22:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 21:55 vsyscalls may be going away... impact on Xen time performance on Linux in the future? Dan Magenheimer
2011-06-09 22:08 ` Jeremy Fitzhardinge [this message]
2011-06-09 22:39   ` Dan Magenheimer

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=4DF14472.7050603@goop.org \
    --to=jeremy@goop.org \
    --cc=dan.magenheimer@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.