P-Core and E-Core Processors
Jim Warner <[email protected]> Wed, 28 Sep 2022 01:50:36 -0500
| Newsgroups | gmane.linux.procps.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Craig,
Attached are three patches that implement an important extension to our
newlib which top now exploits.
I hope they can make it into release 4.0.1 .
The library's <stat> interface offers callers two new enumerators which
relate to Intel's Alder Lake P-core and E-cores.
STAT_TIC_ID_CORE
STAT_TIC_TYPE_CORE
And top exploits the latter enumerator through a subtle change to the
cpu states ('t') portion of the summary area. With a new '5' toggle,
instead of always showing '%Cpu', top can display '%CpP' (p-core) and
'%CpE' (e-core) identifiers.
That '5' toggle can even be used to filter core types so only one or the
other is seen.
This new feature is only active if those two core types are actually
present. However, these #defines are available should anyone wish to
experiment with the new feature.
. affects top only, but guarantees e-cores
PRETENDECORE
. affects the library, but requires more than 10 cpus
PRETEND_E_CORES
Thanks in advance for the push.
Regards,
Jim
newlib-important-3.tgz
(application/x-compressed-tar, 10 KB) - not displayed