public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Andrew Lutomirski <luto@mit.edu>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu
Subject: Re: [3.0-rc0 Regression]: legacy vsyscall emulation increases user CPU time by 20%
Date: Sun, 31 Jul 2011 21:01:19 +1000	[thread overview]
Message-ID: <20110731110119.GO5404@dastard> (raw)
In-Reply-To: <CAObL_7G6rb23X2xAA0Aw6jT+TapynDvhAicNNeo91jD09S5UkQ@mail.gmail.com>

On Fri, Jul 29, 2011 at 09:26:19AM -0400, Andrew Lutomirski wrote:
> On Fri, Jul 29, 2011 at 8:17 AM, Andrew Lutomirski <luto@mit.edu> wrote:
> > On Fri, Jul 29, 2011 at 3:24 AM, Dave Chinner <david@fromorbit.com> wrote:
> >> On Thu, Jul 28, 2011 at 11:30:49PM -0400, Andrew Lutomirski wrote:
> >>> >
> >>> > Assuming this is the problem, can this be fixed without requiring
> >>> > the whole world having to wait for the current glibc dev tree to
> >>> > filter down into distro repositories?
> >>>
> >>> How old is your glibc?  gettimeofday has used the vdso since:
> >>
> >> It's 2.11 on the test machine, whatever that translates to. I
> >> haven't really changed the base userspace for about 12 months
> >> because if I do I invalidate all my historical benchmark results
> >> that I use for comparisons.
> >
> > 2.11 is from 2009 and appears to contain that commit.  Does your
> > workload call time() very frequently?  That's the largest slowdown.
> > With the old code, time() took 4-5 ns and with the new code time() is
> > about as slow as gettimeofday().  I suggested having a config option
> > to allow time() to stay fast until glibc 2.14 became widespread, but a
> > few other people disagreed.
> 
> *sigh*
> 
> fs_mark: fs_mark.o lib_timing.o
>         ${CC} -static -o fs_mark fs_mark.o lib_timing.o
> 
> Even brand-new glibc still issues vsyscalls when statically linked,
> and Ulrich has said [1] that he doesn't care that much about
> performance of statically linked code.
> 
> How bad would it be to just remove the -static from the makefile?

Results in 270s +-5s user CPU time, so user CPU time is still ~10%
up on 3.0 numbers.  IOWs, a non-static link roughly halves the
regression but doesn't get rid of it.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2011-07-31 11:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29  1:38 [3.0-rc0 Regression]: legacy vsyscall emulation increases user CPU time by 20% Dave Chinner
2011-07-29  3:30 ` Andrew Lutomirski
2011-07-29  7:24   ` Dave Chinner
2011-07-29 12:17     ` Andrew Lutomirski
2011-07-29 13:26       ` Andrew Lutomirski
2011-07-31 11:01         ` Dave Chinner [this message]
2011-08-01 12:29           ` Andrew Lutomirski
2011-08-01 13:25             ` Dave Chinner

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=20110731110119.GO5404@dastard \
    --to=david@fromorbit.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@mit.edu \
    --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