Page 1 of 1
Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 12:27 am
by h2-1
While fixing a RAM report bug with some obscure old hardware (pentium M laptop), I noticed that I could add L1 and L3 cache, using dmidecode data, so I tweaked some stuff, and now, if you run sudo or root inxi -Cxxx, you'll get something like this:
Code: Select all
CPU: Topology: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ rev: 2 L1 cache: 576 KiB
L2 cache: 3072 KiB L3 cache: 16.0 MiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 81588
Speed: 1442 MHz min/max: 1550/3400 MHz boost: enabled Core speeds (MHz): 1: 1466 2: 1476 3: 1553
4: 1551 5: 1411 6: 1416 7: 1560 8: 1561 9: 1385 10: 1382 11: 1549 12: 1549
It shows no L1 or L3 if not run as root, or if dmidecode is not installed, or if it failed to find a match. I found quite a few syntax variants to make the match, but I think I've handled most of them. L1 and L3 are -Cxx data.
I also updated the list of matches for architecture, adding zen+, zen 2, coffee lake, tremont, and a bunch of other newer intel architectures.
This is live in inxi/pinxi 3.0.24
Re: Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 2:53 am
by oops
h2-1 wrote: ↑Tue Sep 11, 2018 12:27 am...This is live in inxi/pinxi 3.0.24
Thank you h2-1.
Code: Select all
pinxi -Cxxx
CPU: Topology: Quad Core model: Intel Core i5-2320 bits: 64 type: MCP arch: Sandy Bridge rev: 7
L1 cache: 256 KiB L2 cache: 6144 KiB L3 cache: 6144 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23944
Speed: 1597 MHz min/max: 1600/3300 MHz Core speeds (MHz): 1: 1596 2: 1596 3: 1596 4: 1596
(right, show only L2 if non root)
Re: Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 2:58 am
by h2-1
L2 I can get without root, it actually is created differently. All looks good. Perl inxi is exposing a lot of possibilities that the horrible complexity of the frankencode of gawk/bash of legacy inxi really kept hidden, far more than I realized.
Re: Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 3:54 am
by ChrisUK
Works fine without root here too:
Code: Select all
./pinxi -Cxxx
CPU: Topology: Dual Core model: Intel Core i3 M 380 bits: 64 type: MT MCP arch: Nehalem
rev: 5 L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20218
Speed: 933 MHz min/max: 933/2533 MHz Core speeds (MHz): 1: 933 2: 933 3: 933 4: 933
(For info... 4.9 series Kernel)
If I get time later, I'll post the result from one of my AMD Laptops
EDIT: Here's output from AMD CPU:
Code: Select all
./pinxi -Cxxx
CPU: Topology: Dual Core model: AMD Turion II P520 bits: 64 type: MCP arch: K10 rev: 3
L2 cache: 2048 KiB
flags: lm nx pae sse sse2 sse3 sse4a svm bogomips: 9177
Speed: 800 MHz min/max: 800/2300 MHz Core speeds (MHz): 1: 800 2: 800
Re: Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 10:17 am
by Richard
Version 3.0.23:
Code: Select all
root@mx171:/home/richard# inxi -Cxxx
CPU: Topology: Dual Core model: Intel Core i5-3320M bits: 64 type: MT MCP arch: Ivy Bridge rev: 9
L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20753
Speed: 1197 MHz min/max: 1200/3300 MHz Core speeds (MHz): 1: 1197 2: 1197 3: 1197 4: 1198
root@mx171:/home/richard#
Version 3.0.24:
Code: Select all
root@mx171:/home/richard# pinxi -Cxxx
CPU: Topology: Dual Core model: Intel Core i5-3320M bits: 64 type: MT MCP arch: Ivy Bridge rev: 9
L1 cache: 64 KiB L2 cache: 3072 KiB L3 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20753
Speed: 2774 MHz min/max: 1200/3300 MHz Core speeds (MHz): 1: 3005 2: 1723 3: 1833 4: 2110
root@mx171:/home/richard#
Now I do! and yes it does.
Re: Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 10:26 am
by ChrisUK
Richard wrote: ↑Tue Sep 11, 2018 10:17 am
Sorry, I don't have the new version
Just do
in the Terminal, Richard - then run it from that directory so it doesn't affect your installed version
Re: Even more! -Cxx now shows L1 and L3 cache
Posted: Tue Sep 11, 2018 10:28 am
by Richard
Thanks.
I just ran the
and updated.