linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND PATCH 0/8] turbostat: Fix AMD output by making turbostat aware of nodes
@ 2017-11-03 12:25 Prarit Bhargava
  2017-11-03 12:25 ` [RESEND PATCH 1/8] turbostat: set max_num_cpus equal to the cpumask length Prarit Bhargava
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Prarit Bhargava @ 2017-11-03 12:25 UTC (permalink / raw)
  To: linux-pm
  Cc: lenb, len.brown, charles.rose, rafael, suravee.suthikulpanit,
	Prarit Bhargava

3rd try on this ...

Still haven't heard anything after getting comments on v1... resending.

AMD Ryzen, etc., is gaining more traction.  I'm seeing more reports of this
problem.  Cc'ing Dell & AMD engineers

P.

---8<---

AMD family processors do not show all cores in the output of turbostat.  This
occurs because AMD has multiple nodes per socket and enumerates cores
within each node from 0.  For example, socket 0 may have two nodes (0 and 1)
and those nodes both have cores enumerated from 0 through 7.  turbostat cannot
handle this configuration, and as a result only shows 1/2 the cores in its
output.

This patchset makes turbostate aware of nodes.  It has been tested on
various AMD and Intel systems and no issues have been found.

v2: Fix overwriting of thread_id in 3/8.  Add Node output to turbostat (patch
    8/8).  Various checkpatch.pl cleanups.

Prarit Bhargava (8):
  turbostat: set max_num_cpus equal to the cpumask length
  turbostat: Fix node and siblings lookup data
  turbostat: Calculate additional node information for a package
  turbostat: track thread ID in cpu_topology
  turbostat: rename num_cores_per_pkg to num_cores_per_node
  turbostat: remove num_ from cpu_topology struct
  turbostat: add node information into turbostat calculations
  turbostat: Add Node in output

 tools/power/x86/turbostat/turbostat.c | 449 ++++++++++++++++++++++------------
 1 file changed, 289 insertions(+), 160 deletions(-)

-- 
2.15.0.rc0.39.g2f0e14e64

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

end of thread, other threads:[~2018-01-28 23:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-03 12:25 [RESEND PATCH 0/8] turbostat: Fix AMD output by making turbostat aware of nodes Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 1/8] turbostat: set max_num_cpus equal to the cpumask length Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 2/8] turbostat: Fix node and siblings lookup data Prarit Bhargava
2017-12-08 22:47   ` Len Brown
2017-12-09 11:25     ` Prarit Bhargava
2018-01-03 12:58       ` Prarit Bhargava
2018-01-28 17:43         ` Len Brown
2018-01-28 23:16           ` Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 3/8] turbostat: Calculate additional node information for a package Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 4/8] turbostat: track thread ID in cpu_topology Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 5/8] turbostat: rename num_cores_per_pkg to num_cores_per_node Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 6/8] turbostat: remove num_ from cpu_topology struct Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 7/8] turbostat: add node information into turbostat calculations Prarit Bhargava
2017-11-03 12:25 ` [RESEND PATCH 8/8] turbostat: Add Node in output Prarit Bhargava

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