public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: Andrew Pinski <pinskia@gmail.com>
Cc: sellcey@cavium.com, libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [Patch] Use VDSO interface for gettimeofday on aarch64
Date: Fri, 11 May 2018 05:51:00 -0000	[thread overview]
Message-ID: <32e50458-b2f5-aea1-52f3-0939c7ccf31e@gotplt.org> (raw)
In-Reply-To: <CA+=Sn1marqZc1hg1_YtaZiZWSEZSkzs1U_ei8KUA3xkET8t7aQ@mail.gmail.com>

On 05/11/2018 10:13 AM, Andrew Pinski wrote:
> That does not measure the difference here.  We were already using the
> VDSO before; just differently.  Before we had a PLT that calls into
> the libc and would do then an check on the VDSO and then (another)
> indirect call (to the VDSO).  After we just have an PLT (indirect)
> call into the VDSO directly.  Basically saving the check and an extra
> indirect call (the indirect call can be costly if not predicted
> correctly).

Ah OK, got it.

> Walking the ifuncs won't benchmark the difference that is gotten here.
> 
> You will see the biggest benefit from Apache Bench and running Apache
> as the web server (maybe any other webserver which calls gettimeofday
> a lot as you are producing a date for each socket connection).   And
> yes this is considered a standard benchmark when it comes to CDN.

OK, thanks.  Looks good to me too then.  The benchmark would still be 
nice to have (let me know if y'all don't intend to write it so that I 
can put it in my list of things to do), but not a blocker for this patch.

Siddhesh

  reply	other threads:[~2018-05-11  5:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-10 18:01 Steve Ellcey
2018-05-11  0:28 ` Jonathan Nieder
2018-05-11  4:05 ` Siddhesh Poyarekar
2018-05-11  4:44   ` Andrew Pinski
2018-05-11  5:51     ` Siddhesh Poyarekar [this message]
2018-05-11 11:16 ` Szabolcs Nagy
2018-05-15 23:07   ` Steve Ellcey
2018-05-16 10:44     ` Szabolcs Nagy
2018-05-16 11:52       ` Adhemerval Zanella
2018-05-16 12:03         ` Szabolcs Nagy
2018-05-16 12:13           ` Szabolcs Nagy
2018-05-16 13:23             ` Adhemerval Zanella
2018-05-22 20:26       ` Steve Ellcey
2018-06-14 13:03         ` [COMMITTED] aarch64: Use an ifunc/VDSO to implement gettimeofday in shared glibc Szabolcs Nagy
2018-06-14 16:59           ` Steve Ellcey

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=32e50458-b2f5-aea1-52f3-0939c7ccf31e@gotplt.org \
    --to=siddhesh@gotplt.org \
    --cc=libc-alpha@sourceware.org \
    --cc=pinskia@gmail.com \
    --cc=sellcey@cavium.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).