Skip to contentSkip to conversation

usertools: suggest use of hwloc for new cpu

PATCH NAK Vipin Varghese 7 participants 11 messages Aug 12, 2023 – Sep 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usertools: suggest use of hwloc for new cpu

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket. As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

---

---
 usertools/cpu_layout.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
usertools/cpu_layout.py +10 -0
index 891b9238fa..c8ac613878 100755
@@ -29,6 +29,16 @@
         core_map[key] = []
     core_map[key].append(cpu)
 
+
+print("")
+print(format("=" * (55 + len(base_path))))
+print(" for newer CPU, that supports sub Socket Numa & L3 Numa clustering, please use")
+print(format("=" * (55 + len(base_path))))
+print("  - lstopo-no-graphics  --no-io -.ascii (CPU Mapping)")
+print("  - lstopo-no-graphics  -.ascii --whole-io --no-caches (IO device Mapping)")
+print(format("=" * (55 + len(base_path))))
+print("")
+
 print(format("=" * (47 + len(base_path))))
 print("Core and Socket Information (as reported by '{}')".format(base_path))
 print("{}\n".format("=" * (47 + len(base_path))))
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket. As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

It would be better to just add a footnote now something like cpu_layout script is deprecated use hwloc instead. And include full deprecation notice in DPDK documentation.

Maybe there is a standard python way to mark whole script as deprecated.

#2 lore raw

[AMD Official Use Only - General]

Quoted 20 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Saturday, August 12, 2023 8:30 PM
To: Varghese, Vipin <[email protected]>
Cc: [email protected]; [email protected]; Yigit, Ferruh <[email protected]>
Subject: Re: [PATCH] usertools: suggest use of hwloc for new cpu

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does NAK, no scripting hwloc it is ugly and creates a dependency that is not listed in DPDK packaging..

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Quoted 3 lines

It would be better to just add a footnote now something like cpu_layout script is deprecated use hwloc instead.

Please try and let me know, This is exactly what it is does as pre-footer.

Quoted 3 lines

And include full deprecation notice in DPDK documentation.

Maybe there is a standard python way to mark whole script as deprecated.

With respect to depreciation please check the patchwork for usertools: enahcne logic to display NUMA all these are already discussed.

We even requested to remove the script if it is not be used.

#3 lore raw
Quoted 9 lines · Vipin
Quoted 9 lines
Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does NAK, no scripting hwloc it is ugly and creates a dependency that is not listed in DPDK packaging..

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +5 -0
index 317875c5054b..25a116900dfb 100644
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.
usertools/cpu_layout.py +5 -0
index 891b9238fa19..37a4f9ff24b4 100755
@@ -62,3 +62,8 @@
         else:
             output += " " * (max_core_map_len + 1)
     print(output)
+
+print("")
+print("This tool is unable to cope with complex NUMA layouts")
+print("and will be removed in a future release.")
+print("Suggest using lstopo or similar tools instead.")
Signature · 1 line
2.39.2
#4 lore raw

[AMD Official Use Only - General]

Quoted 34 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Sunday, August 13, 2023 9:22 PM
To: Varghese, Vipin <[email protected]>
Cc: [email protected]; [email protected]; Yigit, Ferruh <[email protected]>
Subject: Re: [PATCH] usertools: suggest use of hwloc for new cpu

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.

Quoted 5 lines · Vipin
Quoted 5 lines
Quoted 1 line · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA

based

Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does `

NAK, no scripting hwloc it is ugly and creates a dependency that is not listed in DPDK packaging.`.

Quoted 1 line
Quoted 6 lines
Quoted 1 line

Requesting to cross check why NAK is shared for print as suggestion. Hence,

I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

Thanks Stephen, to that I agree lstopo can change the flags and user might need in various format.

Quoted 28 lines

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +6 -0
index 317875c5054b..25a116900dfb 100644
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the
+possible
+  complexities of modern CPU topology. Other existing tools offer more
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.
usertools/cpu_layout.py index renamed from usertools/cpu_layout.py +0 -0

891b9238fa19..37a4f9ff24b4 100755

usertools/cpu_layout.py line 69

Quoted 8 lines
usertools/cpu_layout.py +5 -0
@@ -62,3 +62,8 @@
         else:
             output += " " * (max_core_map_len + 1)
     print(output)
+
+print("")
+print("This tool is unable to cope with complex NUMA layouts")
+print("and will be removed in a future release.") print("Suggest using
+lstopo or similar tools instead.")

I am comfortable with the same as it serves the needs. I am happy to ack the same too.

Quoted 2 lines

--
2.39.2

#5 lore raw
In reply to Stephen Hemminger
Quoted 37 lines · Stephen Hemminger
Quoted 9 lines · Vipin
Quoted 9 lines
Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does NAK, no scripting hwloc it is ugly and creates a dependency that is not listed in DPDK packaging..

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +0 -0
index 317875c5054b..25a116900dfb 100644

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 192

Quoted 8 lines
doc/guides/rel_notes/deprecation.rst +5 -0
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.

Does the script really do that bad a job? While I can understand us looking to recommend alternatives, I actually find the script in it's current form really handy - much more so than working out the exact flags for lstopo etc. Since it's not a large maintenance burden, I'd request we keep it around - while still recommending lstopo to users.

/Bruce

#6 lore raw
Quoted 62 lines

From: Bruce Richardson [mailto:[email protected]]
Sent: Monday, 14 August 2023 10.52

Quoted 7 lines · Stephen Hemminger
Quoted 4 lines · Vipin
Quoted 4 lines

On Sat, 12 Aug 2023 06:27:20 +0530
Vipin Varghese <[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

NAK, no scripting hwloc, it is ugly and creates a dependency that is not

listed

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does

NAK, no scripting hwloc it is ugly and creates a dependency that is not listed in DPDK packaging..

Quoted 2 lines
Quoted 2 lines

Requesting to cross check why NAK is shared for print as suggestion.

Hence, I have disagree to this.

Quoted 3 lines

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want

different

Review

Quoted 10 lines

format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
(quoted diff) +0 -0

b/doc/guides/rel_notes/deprecation.rst

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 192

Quoted 12 lines

index 317875c5054b..25a116900dfb 100644

doc/guides/rel_notes/deprecation.rst +5 -0
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.

Does the script really do that bad a job? While I can understand us looking to recommend alternatives, I actually find the script in it's current form really handy - much more so than working out the exact flags for lstopo etc. Since it's not a large maintenance burden, I'd request we keep it around - while still recommending lstopo to users.

Quoted 1 line

/Bruce

Also, if lstopo has other dependencies than libc, it might be cumbersome for non-distro usage. Although, I guess it is only used for hardware bring-up in those cases anyway.

In short: I agree with Bruce on this.

#7 lore raw
In reply to Bruce Richardson
Quoted 46 lines · Stephen Hemminger
Quoted 12 lines
Quoted 9 lines · Vipin
Quoted 9 lines
Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does ` NAK, no scripting hwloc it is ugly and creates a

dependency that is not listed in DPDK packaging.`.

Quoted 25 lines
Quoted 2 lines

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +3 -0
index 317875c5054b..25a116900dfb 100644
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
Quoted 8 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 192

Quoted 2 lines
doc/guides/rel_notes/deprecation.rst +2 -0
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.

Does the script really do that bad a job? While I can understand us looking to recommend alternatives, I actually find the script in it's current form really handy - much more so than working out the exact flags for lstopo etc. Since it's not a large maintenance burden, I'd request we keep it around - while still recommending lstopo to users.

+1
I do use it on regular basis.
It would be a pity if it will be gone.
Konstantin

#8 lore raw
Quoted 55 lines · Konstantin Ananyev
Quoted 46 lines · Stephen Hemminger
Quoted 12 lines
Quoted 9 lines · Vipin
Quoted 9 lines
Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does ` NAK, no scripting hwloc it is ugly and creates a

dependency that is not listed in DPDK packaging.`.

Quoted 25 lines
Quoted 2 lines

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +3 -0
index 317875c5054b..25a116900dfb 100644
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
Quoted 8 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 192

Quoted 2 lines
doc/guides/rel_notes/deprecation.rst +2 -0
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.

Does the script really do that bad a job? While I can understand us looking to recommend alternatives, I actually find the script in it's current form really handy - much more so than working out the exact flags for lstopo etc. Since it's not a large maintenance burden, I'd request we keep it around - while still recommending lstopo to users.

Quoted 4 lines

+1
I do use it on regular basis.
It would be a pity if it will be gone.

I also use it time to time and find it useful.

But it is not accurate/correct for some AMD platforms (for various NPS (Nodes per Socket) values).
So either it needs to be updated/improved or replaced.

Vipin sent a patch [1] to update it but it is question how much of this logic belongs to DPDK, or should we rely on external tools dedicated for this purpose.

Both are OK, if we can give a decision we can proceed on that direction.

[1]
https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/

#9 lore raw
Quoted 63 lines · Ferruh Yigit
Quoted 55 lines · Konstantin Ananyev
Quoted 46 lines · Stephen Hemminger
Quoted 12 lines
Quoted 9 lines · Vipin
Quoted 9 lines
Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does ` NAK, no scripting hwloc it is ugly and creates a

dependency that is not listed in DPDK packaging.`.

Quoted 25 lines
Quoted 2 lines

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +3 -0
index 317875c5054b..25a116900dfb 100644
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
Quoted 8 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 192

Quoted 2 lines
doc/guides/rel_notes/deprecation.rst +2 -0
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.

Does the script really do that bad a job? While I can understand us looking to recommend alternatives, I actually find the script in it's current form really handy - much more so than working out the exact flags for lstopo etc. Since it's not a large maintenance burden, I'd request we keep it around - while still recommending lstopo to users.

Quoted 4 lines

+1
I do use it on regular basis.
It would be a pity if it will be gone.

I also use it time to time and find it useful.

Quoted 8 lines

But it is not accurate/correct for some AMD platforms (for various NPS (Nodes per Socket) values).
So either it needs to be updated/improved or replaced.

Vipin sent a patch [1] to update it but it is question how much of this logic belongs to DPDK, or should we rely on external tools dedicated for this purpose.

I'd like to suggest that we take a slightly ambiguous position on this script. Specifically:

I think we should "recommend" but not "rely on" external tools for this. Specifically, I think that recommending use of hwloc is the best thing to do as it's better maintained and packaged for windows. However, for quick use in many situations, cpu_layout does the job as well or better in terms of simplicity of use and output.

/Bruce

#10 lore raw

04/09/2023 12:20, Bruce Richardson:

Quoted 73 lines · Ferruh Yigit
Quoted 63 lines · Konstantin Ananyev
Quoted 55 lines
Quoted 46 lines · Stephen Hemminger
Quoted 12 lines
Quoted 9 lines · Vipin
Quoted 9 lines
Quoted 5 lines · On Sat, 12 Aug 2023 06:27:20 +0530 Vipin Varghese <[email protected]>…

Most modern processor now supports numa by partitioning NUMA based on CPU-IO & Last Level Cache within the same socket.
As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

NAK, no scripting hwloc, it is ugly and creates a dependency that is not listed in DPDK packaging.

There is no calls to hwloc within in thescript. Hence not clear what does ` NAK, no scripting hwloc it is ugly and creates a

dependency that is not listed in DPDK packaging.`.

Quoted 25 lines
Quoted 2 lines

Requesting to cross check why NAK is shared for print as suggestion. Hence, I have disagree to this.

Sorry, I misinterpreted what the print's were doing.
Better off not to list exact flags, the lstopo may change and user may want different format anyway.

How about something like this?

 doc/guides/rel_notes/deprecation.rst | 5 +++++
 usertools/cpu_layout.py              | 5 +++++
 2 files changed, 10 insertions(+)
doc/guides/rel_notes/deprecation.rst +3 -0
index 317875c5054b..25a116900dfb 100644
@@ -185,3 +185,8 @@ Deprecation Notices
   will be deprecated and subsequently removed in DPDK 24.11 release.
   Before this, the new port library API (functions rte_swx_port_*)
   will gradually transition from experimental to stable status.
+
+* cpulayout: The CPU layout script is unable to deal with all the possible
+  complexities of modern CPU topology. Other existing tools offer more
Quoted 8 lines

doc/guides/rel_notes/deprecation.rst Deprecation Notices · line 192

Quoted 2 lines
doc/guides/rel_notes/deprecation.rst +2 -0
+  features and do a better job with keeping up with innovations.
+  Therefore it will be deprecated and removed in a future release.

Does the script really do that bad a job? While I can understand us looking to recommend alternatives, I actually find the script in it's current form really handy - much more so than working out the exact flags for lstopo etc. Since it's not a large maintenance burden, I'd request we keep it around - while still recommending lstopo to users.

Quoted 4 lines

+1
I do use it on regular basis.
It would be a pity if it will be gone.

I also use it time to time and find it useful.

Quoted 8 lines

But it is not accurate/correct for some AMD platforms (for various NPS (Nodes per Socket) values).
So either it needs to be updated/improved or replaced.

Vipin sent a patch [1] to update it but it is question how much of this logic belongs to DPDK, or should we rely on external tools dedicated for this purpose.

Quoted 8 lines

I'd like to suggest that we take a slightly ambiguous position on this script. Specifically:

I think we should "recommend" but not "rely on" external tools for this. Specifically, I think that recommending use of hwloc is the best thing to do as it's better maintained and packaged for windows. However, for quick use in many situations, cpu_layout does the job as well or better in terms of simplicity of use and output.

We could also contribute to hwloc to have a similar simple output.