linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] perf, x86: Support full width counting v3
       [not found] <1372121749-12164-1-git-send-email-andi@firstfloor.org>
@ 2013-06-25  7:22 ` Ingo Molnar
  2013-06-25  7:23   ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Ingo Molnar @ 2013-06-25  7:22 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel, eranian, peterz, Andi Kleen


* Andi Kleen <andi@firstfloor.org> wrote:

> From: Andi Kleen <ak@linux.intel.com>
> 
> Recent Intel CPUs like Haswell and IvyBridge have a new alternative MSR
> range for perfctrs that allows writing the full counter width. Enable this
> range if the hardware reports it using a new capability bit.
> 
> This lowers the overhead of perf stat slightly because it has to do less
> interrupts to accumulate the counter value. On Haswell it also avoids some
> problems with TSX aborting when the end of the counter range is reached.

Looks good - the changelog needs more work: please first outline the 
current behavior (how we can only write 32 bit values into the counter, 
even though the counter range is larger on most CPUs).

Then also outline the Haswell problems more precisely. What happens, why, 
with what probability and why do we care?

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] perf, x86: Support full width counting v3
  2013-06-25  7:22 ` [PATCH] perf, x86: Support full width counting v3 Ingo Molnar
@ 2013-06-25  7:23   ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2013-06-25  7:23 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel, eranian, peterz, Andi Kleen


* Ingo Molnar <mingo@kernel.org> wrote:

> Looks good - the changelog needs more work: please first outline the 
> current behavior (how we can only write 32 bit values into the counter, 
> even though the counter range is larger on most CPUs).
> 
> Then also outline the Haswell problems more precisely. What happens, 
> why, with what probability and why do we care?

For the latter it's enough to put a reference like this into the 
changelog:

  See the patch "perf/x86/intel: Avoid checkpointed counters causing 
  excessive TSX aborts" for more details.

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-25  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1372121749-12164-1-git-send-email-andi@firstfloor.org>
2013-06-25  7:22 ` [PATCH] perf, x86: Support full width counting v3 Ingo Molnar
2013-06-25  7:23   ` Ingo Molnar

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).