linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rick Jones <rick.jones2@hpe.com>
To: "linux-perf-users@vger.kernel.org" <linux-perf-users@vger.kernel.org>
Subject: Tutorial/git's guide to c-state counters on Intel?
Date: Wed, 6 Jul 2016 12:30:32 -0700	[thread overview]
Message-ID: <577D5C58.20802@hpe.com> (raw)

I am presently trying to tease-out why a "slight" change in kernel 
(4.4.7 to 4.4.11) might result in a large change in some VM to VM 
netperf TCP_RR performance.  I've seen that if I set the system firmware 
to be in a static high performance mode rather than a dynamic power 
management (by the firmware) mode the gap narrows considerably.

I've come across:

   cstate_core/c3-residency/                          [Kernel PMU event]
   cstate_core/c6-residency/                          [Kernel PMU event]
   cstate_core/c7-residency/                          [Kernel PMU event]
   cstate_pkg/c2-residency/                           [Kernel PMU event]
   cstate_pkg/c3-residency/                           [Kernel PMU event]
   cstate_pkg/c6-residency/                           [Kernel PMU event]
   cstate_pkg/c7-residency/                           [Kernel PMU event]

and when I count those via perf comparing the two, back in the dynamic 
power managment mode, I can see more package c* residency on the slower 
setup (newer kernel).  That fits with the hypothesis that the slower 
request/response performance is coming from going into and out of sleep 
states more - something which has been known to affect the likes of a 
netperf TCP_RR test for years.   I don't see nearly as large a 
difference between the core c* counts though, which leaves me wondering 
why/how that might be.

The processors in question here are E5-2640:

model name	: Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz

happy benchmarking,

rick jones

                 reply	other threads:[~2016-07-06 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=577D5C58.20802@hpe.com \
    --to=rick.jones2@hpe.com \
    --cc=linux-perf-users@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).