Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Even more! -Cxx now shows L1 and L3 cache

Post Reply
Message
Author
User avatar
h2-1
Forum Regular
Forum Regular
Posts: 429
Joined: Sat Nov 15, 2008 3:16 pm

Even more! -Cxx now shows L1 and L3 cache

#1 Post by h2-1 » Tue Sep 11, 2018 12:27 am

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
Last edited by h2-1 on Tue Sep 11, 2018 3:00 am, edited 1 time in total.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
oops
Forum Regular
Forum Regular
Posts: 440
Joined: Tue Apr 10, 2018 5:07 pm

Re: Even more! -Cxx now shows L1 and L3 cache

#2 Post by oops » Tue Sep 11, 2018 2:53 am

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)
$ inxi -Fxxxz : System: Host:XEON ... Distro: MX-17.1_x64 Horizon

User avatar
h2-1
Forum Regular
Forum Regular
Posts: 429
Joined: Sat Nov 15, 2008 3:16 pm

Re: Even more! -Cxx now shows L1 and L3 cache

#3 Post by h2-1 » Tue Sep 11, 2018 2:58 am

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.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
ChrisUK
Forum Regular
Forum Regular
Posts: 226
Joined: Tue Dec 12, 2017 1:04 pm

Re: Even more! -Cxx now shows L1 and L3 cache

#4 Post by ChrisUK » Tue Sep 11, 2018 3:54 am

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 
Chris

MX 17 - Manjaro

User avatar
Richard
Posts: 2227
Joined: Fri Dec 12, 2008 10:31 am

Re: Even more! -Cxx now shows L1 and L3 cache

#5 Post by Richard » Tue Sep 11, 2018 10:17 am

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.
Last edited by Richard on Tue Sep 11, 2018 10:28 am, edited 2 times in total.
MX18b1: Lenovo T430: Intel Ivy Bridge i5-3320M, 8GB RAM, 4.19.0-1-amd64, 119 GB SSD
MX18b1: Eee&AA1 NBs: Dual Core Atom N270, 1GB RAM, 4.19.0-1-686, 150 GB HDD
DoubleCmd/Thunar, LibO613, Dropbox, Vivaldi/Firefox, CherryTree, Vbox. LinuxCounter #208633

User avatar
ChrisUK
Forum Regular
Forum Regular
Posts: 226
Joined: Tue Dec 12, 2017 1:04 pm

Re: Even more! -Cxx now shows L1 and L3 cache

#6 Post by ChrisUK » Tue Sep 11, 2018 10:26 am

Richard wrote:
Tue Sep 11, 2018 10:17 am
Sorry, I don't have the new version
Just do

Code: Select all

wget -Nc smxi.org/pinxi
in the Terminal, Richard - then run it from that directory so it doesn't affect your installed version
Chris

MX 17 - Manjaro

User avatar
Richard
Posts: 2227
Joined: Fri Dec 12, 2008 10:31 am

Re: Even more! -Cxx now shows L1 and L3 cache

#7 Post by Richard » Tue Sep 11, 2018 10:28 am

Thanks.
I just ran the

Code: Select all

# pinxi -U 
and updated.
MX18b1: Lenovo T430: Intel Ivy Bridge i5-3320M, 8GB RAM, 4.19.0-1-amd64, 119 GB SSD
MX18b1: Eee&AA1 NBs: Dual Core Atom N270, 1GB RAM, 4.19.0-1-686, 150 GB HDD
DoubleCmd/Thunar, LibO613, Dropbox, Vivaldi/Firefox, CherryTree, Vbox. LinuxCounter #208633

Post Reply

Return to “antiX”