LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2021, 06:54 PM   #91
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 302

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310

Quote:
Originally Posted by h2-1 View Post
pinxi 3.3.09-18 should have the broken legacy speeds fixed...
Indeed it does. All three machines from my last post showing proper MHz with pinxi 3.3.09-18.
 
Old 11-29-2021, 07:02 PM   #92
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
This is using pure debugger data, completely emulated, I could never do that with inxi cpu logic before, I could only partially emulate it.

Code:
CPU:
  Info: Single Core model: Intel Atom N270 bits: 64 type: MT arch: Bonnell
  family: 6 model-id: 1C (28) stepping: 2 microcode: 208 cache: L1: 56 KiB
  desc: d-1x24 KiB; i-1x32 KiB L2: 512 KiB desc: 1x512 KiB
  flags: ht nx pae sse sse2 sse3 ssse3 bogomips: 3192
  Speed (MHz): avg: 1596 min/max: 800/1600 cores: 1: 1596 2: 1596
  Vulnerabilities:
  Type: meltdown status: Not affected
  Type: spectre_v1 status: Not affected
  Type: spectre_v2 status: Not affected
This is the latest pinxi with fixes for the legacy cpu speed failures.
 
Old 11-29-2021, 07:04 PM   #93
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
JayByrd, excellent, I was afraid one bit might be missing. This is very promising because the problem was easy to locate and correct, this is what I was hoping for with the new logic, to have it finally be debuggable and maintainable.

I'll get started on the next set of possible failures, the cache failures may be simply data not being there due to cpuid internally not getting it from the cpu, but I want to be sure about that, in cases where it's coming from somewhere, it has to be the cpu, so in theory /sys should have it too, but maybe it's a question of kernel vs cpu age/vintage, will wait to see what is going on there.
 
Old 11-29-2021, 07:28 PM   #94
JayByrd
Member
 
Registered: Aug 2021
Location: Seattle, WA
Distribution: Slackware
Posts: 302

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
Quote:
Originally Posted by h2-1 View Post
..., so in theory /sys should have it too, but maybe it's a question of kernel vs cpu age/vintage, will wait to see what is going on there.
This has crossed my mind, too, as we've been running these tests.

For the record, all of my boxes--both 32 and 64 bit--are running Slackware 14.2 w/ 4.4.x kernel, with two exceptions: my two 64-bit AMD's are running Slackware 14.1 w/ 3.10.x kernel. (Specifically, "Info: Dual Core model: AMD Athlon II X2 245" and "Info: Quad Core model: AMD A8-4555M APU with Radeon HD Graphics")

Don't know if this info will be helpful, but I figure full disclosure is in order.
 
Old 11-29-2021, 08:03 PM   #95
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
drgibbon, thanks for the data. This is looking suspiciously like your system generating windows line endings (\r\n, not \n), or adding line endings to /sys values, but that seems really weird, but so far that's what it looks like.

Will check more. As soon as I put your data in, I got immediate corruptions, but that may be the result of how the files were transferred and pasted, can't ever trust them when anything other than the generating OS itself writes the data to file.
 
Old 11-29-2021, 08:16 PM   #96
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
drgibbon, data works, initially failed totally, similar to your failure, but as soon as I resaved file to unix line endings it worked. I've hit this issue in another program I do that has to deal with diverse platform data and various line endings.

No problems with the paths however, data is all fine. But I've never seen /sys serve up line endings that include \r, and am skeptical of this idea. But it matches what you had happen roughly, though not completely.

Can you confirm with current pinxi, updated with -U, that you are NOT seeing this? Ignore the vulnerabilities, my one liner can't catch those.

I did find in testing that if I accidentally saved with windows/dos line endings, the data got corrupted, but /sys data should NOT ever use /r/n, that would be silly, and I can't see the linux programmers ever making that type of mistake.

Code:
CPU:
  Info: Quad Core model: Intel Core i7-8565U bits: 64 type: MT MCP
  arch: Comet/Whiskey Lake note: check family: 6 model-id: 8E (142)
  stepping: C (12) microcode: EA cache: L1: 256 KiB
  desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 8 MiB
  desc: 1x8 MiB
  flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 3999
  Speed (MHz): avg: 3261 high: 4075 min/max: 400/4600 cores: 1: 3081 2: 3500
  3: 2637 4: 3105 5: 3301 6: 2714 7: 3676 8: 4075
  Vulnerabilities: itlb_multihit spec_store_bypass spectre_v1 spectre_v2 srbds
  swapgs

Last edited by h2-1; 11-29-2021 at 08:46 PM.
 
Old 11-29-2021, 08:25 PM   #97
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
bw42, off topic, but what does: pinxi -zyv8 give you for the RISCV system now?

If we're lucky, a lot of the devicetree features will 'just work' with this new RISC type, it looks already like some are working. I fyou see any of graphics / audio / network devices show no devices found (Audio will often find ne using a fallback test, but graphics and network can't use that method since it's for audio only). It would be nice if the device tree logic actually covers more because that stuff is a real pain in the butt to get working, there's a fix in it for example that only applies literally to one SOC, Pi 3 and 4, nothing else in the world (wifi and bluetooth).

This fix should also have made support for all the risc cpu types a lot more consistent, I had actually never realized how similar they are to each other, and had more or less treated them as separate, though they used the same backend logic in general to generate system device data.
 
Old 11-29-2021, 09:42 PM   #98
bw42
Member
 
Registered: Feb 2011
Distribution: Slackware
Posts: 65

Rep: Reputation: 51
The RISC-V system doesn't have a GPU or sound, I connect over usb serial or ssh for building packages right now.
Here's the output of those flags.
Does show quite a bit now.

Code:
System:
  Kernel: 5.12.4 riscv64 bits: 64 compiler: N/A
  parameters: root=/dev/mmcblk0p4 rootfstype=ext4 rootwait
  console=ttySIF0,115200 earlycon
  Console: pty pts/1 Distro: FreedomUSDK 2021.05.00 (2021May)
Machine:
  Type: RISCV System: SiFive HiFive Unmatched details: N/A serial: <filter>
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 15.65 GiB used: 2.1 GiB (13.4%)
  RAM Report: smbios: No SMBIOS data for dmidecode to process
PCI Slots:
Use of uninitialized value $val2 in string eq at ./pinxi line 6833.
Use of uninitialized value $val2 in split at ./pinxi line 6838.
Use of uninitialized value $val2 in concatenation (.) or string at ./pinxi line 6840.
Use of uninitialized value $val2 in concatenation (.) or string at ./pinxi line 6842.
Use of uninitialized value $val2 in concatenation (.) or string at ./pinxi line 6843.
  RISCV:
CPU:
  Info: Quad Core model: N/A variant-1: u74-mc variant-2: bullet0 bits: 64
  type: MCP arch: riscv64 family: N/A model-id: N/A cache: L1: 256 KiB
  desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 1x2 MiB bogomips: N/A
  Speed: N/A min/max: N/A cores: No per core speed data found.
  Features: N/A
  Vulnerabilities: No CPU vulnerability/bugs data available.
Graphics:
  Message: No device data found.
  Display: server: No display server data found. Headless machine? tty: 115x70
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Message: No device data found.
  Sound Server-1: ALSA v: k5.12.4 running: yes
  Sound Server-2: OSS v: N/A running: yes
Network:
  Device-1: fu540-c000-gem driver: macb v: N/A port: N/A bus-ID: N/A
  chip-ID: sifive:10090000 class-ID: ethernet
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
  broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: sit0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 268.2 GiB used: 75.35 GiB (28.1%)
  ID-1: /dev/mmcblk0 maj-min: 179:0 vendor: SanDisk model: SD32G
  size: 29.72 GiB block-size: physical: 512 B logical: 512 B type: SSD
  serial: <filter> scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  ID-2: /dev/nvme0n1 maj-min: 259:0 model: PCIe SSD size: 238.47 GiB
  block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
  type: SSD serial: <filter> rev: ECFM22.6 temp: 27.9 C scheme: GPT
  SMART Message: Unknown smartctl error. Unable to generate data.
  Floppy-1: /dev/fd0
  Floppy-2: /dev/fd1
  Floppy-3: /dev/fd2
  Floppy-4: /dev/fd3
  Optical-1: /dev/scd0 vendor: N/A model: N/A rev: N/A dev-links: cdrom
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-2: /dev/scd1 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-3: /dev/scd10 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-4: /dev/scd11 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-5: /dev/scd12 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-6: /dev/scd13 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-7: /dev/scd14 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-8: /dev/scd15 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-9: /dev/scd2 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-10: /dev/scd3 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-11: /dev/scd4 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-12: /dev/scd5 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-13: /dev/scd6 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-14: /dev/scd7 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-15: /dev/scd8 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-16: /dev/scd9 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-17: /dev/sr0 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-18: /dev/sr1 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-19: /dev/sr10 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-20: /dev/sr11 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-21: /dev/sr12 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-22: /dev/sr13 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-23: /dev/sr14 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-24: /dev/sr15 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-25: /dev/sr2 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-26: /dev/sr3 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-27: /dev/sr4 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-28: /dev/sr5 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-29: /dev/sr6 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-30: /dev/sr7 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-31: /dev/sr8 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
  Optical-32: /dev/sr9 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
  state: N/A
Partition:
  ID-1: / raw-size: 6.5 GiB size: 6.21 GiB (95.47%) used: 4.13 GiB (66.5%)
  fs: ext4 block-size: 4096 B dev: /dev/mmcblk0p4 maj-min: 179:4 label: root
  uuid: f2716aa7-27b8-40ea-93ab-31697660b7f2
  ID-2: /boot raw-size: 130 MiB size: 129.8 MiB (99.88%) used: 8.4 MiB (6.4%)
  fs: vfat block-size: 512 B dev: /dev/mmcblk0p3 maj-min: 179:3 label: boot
  uuid: 8023-D258
  ID-3: /tmp raw-size: 238.47 GiB size: 233.73 GiB (98.01%)
  used: 71.2 GiB (30.5%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p1
  maj-min: 259:1 label: N/A uuid: 9b2f3b4d-e4cd-4cd7-9b8e-843e2dddfb80
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 23.09 GiB used: 10 MiB (0.0%)
  priority: -2 dev: /dev/mmcblk0p5 maj-min: 179:5 label: N/A
  uuid: f91c6d81-1359-4bd6-9f6f-3567f1a5373c
Unmounted:
  ID-1: /dev/mmcblk0p1 maj-min: 179:1 size: 1024 KiB fs: N/A label: N/A
  uuid: N/A
  ID-2: /dev/mmcblk0p2 maj-min: 179:2 size: 4 MiB fs: N/A label: N/A uuid: N/A
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-2:2 info: ASMedia ASM1074 High-Speed hub ports: 4 rev: 2.1
  speed: 480 Mb/s power: 100mA chip-ID: 174c:2074 class-ID: 0900
  Hub-3: 2-0:1 info: Super-speed hub ports: 2 rev: 3.0 speed: 5 Gb/s
  chip-ID: 1d6b:0003 class-ID: 0900
  Hub-4: 2-2:2 info: ASMedia ASM1074 SuperSpeed hub ports: 4 rev: 3.0
  speed: 5 Gb/s power: 8mA chip-ID: 174c:3074 class-ID: 0900
Sensors:
  System Temperatures: cpu: 42.8 C mobo: 38.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pkgtool: 1
  Alert: No repo data detected. Does pinxi support your package manager?
Processes:
  CPU top: 5 of 124
  1: cpu: 78.3% command: cc1plus pid: 64900 mem: 526.8 MiB (3.2%)
  2: cpu: 77.7% command: cc1plus pid: 64903 mem: 441.0 MiB (2.7%)
  3: cpu: 75.7% command: cc1plus pid: 64912 mem: 288.1 MiB (1.7%)
  4: cpu: 73.7% command: cc1plus pid: 64915 mem: 279.6 MiB (1.7%)
  5: cpu: 72.6% command: cc1plus pid: 64910 mem: 288.1 MiB (1.7%)
  Memory top: 5 of 124
  1: mem: 526.8 MiB (3.2%) command: cc1plus pid: 64900 cpu: 78.3%
  2: mem: 441.0 MiB (2.7%) command: cc1plus pid: 64903 cpu: 77.7%
  3: mem: 288.1 MiB (1.7%) command: cc1plus pid: 64910 cpu: 72.6%
  4: mem: 288.1 MiB (1.7%) command: cc1plus pid: 64912 cpu: 75.7%
  5: mem: 279.6 MiB (1.7%) command: cc1plus pid: 64915 cpu: 73.7%
Info:
  Processes: 124 Uptime: 5d 1h 56m Init: systemd v: 247 runlevel: 3
  target: multi-user.target tool: systemctl Compilers: gcc: 10.3.0 alt: 10.3.0
  clang: 12.0.0 Shell: sh (su) running-in: pty pts/1 (SSH) pinxi: 3.3.09-18
 
Old 11-29-2021, 09:44 PM   #99
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
Using "-MCazy" with "inxi 3.3.09-00 (2021-11-22)":
Code:
Machine:
  Type: Laptop System: ASUSTeK product: 1005HA v: x.x
  serial: <superuser required> Chassis: type: 10 v: x.x
  serial: <superuser required>
  Mobo: ASUSTeK model: 1005HA v: x.xx serial: <superuser required>
  BIOS: American Megatrends v: 1601 date: 04/18/2011
CPU:
  Info: Single Core model: Intel Atom N270 bits: 32 type: MT arch: Bonnell
  family: 6 model-id: 1C (28) stepping: 2 microcode: 218 cache: L1: 56 KiB
  L2: 512 KiB
  flags: ht nx pae sse sse2 sse3 ssse3 bogomips: 6399
  Speed: 800 MHz min/max: 800/1600 MHz Core speeds (MHz): 1: 800 2: 1600
  Vulnerabilities: Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 status: Not affected
  Type: spectre_v2 status: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Using "-MCazy" with "pinxi 3.3.09-18 (2021-11-28)":
Code:
Machine:
  Type: Laptop System: ASUSTeK product: 1005HA v: x.x
  serial: <superuser required> Chassis: type: 10 v: x.x
  serial: <superuser required>
  Mobo: ASUSTeK model: 1005HA v: x.xx serial: <superuser required>
  BIOS: American Megatrends v: 1601 date: 04/18/2011
CPU:
  Info: Single Core model: Intel Atom N270 bits: 32 type: MT arch: Bonnell
  family: 6 model-id: 1C (28) stepping: 2 microcode: 218 cache: L1: 56 KiB
  desc: d-1x24 KiB; i-1x32 KiB L2: 512 KiB desc: 1x512 KiB
  flags: ht nx pae sse sse2 sse3 ssse3 bogomips: 3199
  Speed (MHz): avg: 1200 high: 1600 min/max: 800/1600 cores: 1: 1600 2: 800
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 status: Not affected
  Type: spectre_v2 status: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
 
Old 11-29-2021, 11:07 PM   #100
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
Below, the output says the maximum processor speed is "2499". Is this supposed to say "2500"?

Code:
user1@darkstar:~$ inxi -V | grep 3.3 
inxi 3.3.09-00 (2021-11-22)
user1@darkstar:~$
user1@darkstar:~$ inxi -MCazy       
Machine:
  Type: Desktop System: Dell product: Studio Slim 540s v: N/A
  serial: <superuser required> Chassis: type: 3 v: '01'
  serial: <superuser required>
  Mobo: Dell model: 0M017G v: A00 serial: <superuser required> BIOS: Dell
  v: 1.1.3 date: 08/25/2009
CPU:
  Info: Quad Core model: Intel Core2 Quad Q8300 bits: 64 type: MCP
  arch: Penryn family: 6 model-id: 17 (23) stepping: A (10) microcode: A0B
  cache: L1: 256 KiB L2: 8 MiB
  flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 19998
  Speed: 2003 MHz min/max: 2003/2499 MHz Core speeds (MHz): 1: 2003 2: 2003
  3: 2003 4: 2003
  Vulnerabilities: Type: itlb_multihit status: Processor vulnerable
  Type: l1tf mitigation: PTE Inversion
  Type: mds
  status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
  mitigation: Full generic retpoline, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Code:
user1@darkstar:~$ /tmp/pinxi -V | grep 3.3
pinxi 3.3.09-18 (2021-11-28)
user1@darkstar:~$
user1@darkstar:~$ /tmp/pinxi -MCazy       
Machine:
  Type: Desktop System: Dell product: Studio Slim 540s v: N/A
  serial: <superuser required> Chassis: type: 3 v: '01'
  serial: <superuser required>
  Mobo: Dell model: 0M017G v: A00 serial: <superuser required> BIOS: Dell
  v: 1.1.3 date: 08/25/2009
CPU:
  Info: Quad Core model: Intel Core2 Quad Q8300 bits: 64 type: MCP
  arch: Penryn family: 6 model-id: 17 (23) stepping: A (10) microcode: A0B
  cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 4 MiB desc: 2x2 MiB
  flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx bogomips: 4999
  Speed (MHz): avg: 2003 min/max: 2003/2499 cores: 1: 2003 2: 2003 3: 2003
  4: 2003
  Vulnerabilities:
  Type: itlb_multihit status: Processor vulnerable
  Type: l1tf mitigation: PTE Inversion
  Type: mds
  status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
  mitigation: Full generic retpoline, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
As I understand it, I have installed the most recent microcode version available --- and Intel is refusing to create a microcode version to mitigate the above listed vulnerabilities. :-(

Last edited by baumei; 11-29-2021 at 11:13 PM.
 
Old 11-29-2021, 11:31 PM   #101
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Note that I think some are using inxi 3.3.09 which had a rough patch fix to get the caches right, otherwise we'd be seeing a lot more wrong caches from inxi, basically 3.3.09 and 3.3.10 are 2 parts of the same release process, only most of the extra hacks in 3.3.09 were dropped completely in favor of the real solution which is now running in pinxi. But the hack fix actually did correct some cache ids that were failing before, and there was another crude fix for another issue you won't generally see unless you are runinng virtualized servers, wrong core counts.

Basically as I saw the failure cases for cache roll in, I realized that the old hacks to guess, sometimes with success, at L2 cache, were just not going to cut it now that we have a better method, so those are rolled back, and if cpuinfo only shows 'cache size:' then inxi isn't going to try to guess at what type of cache it is, it's just going to be treated as an anoynmous cache type, no math except for physical cpu multiplication will be done on it. Basically as these examples showed me, if only cache size: shows, that can be L1, L2, or L3, and zero way to know what is what. That's a big reason I did the refactor in the first place, this was only going to get worse.

these updates are all in pinxi 3.3.09-20. Seems closer, but still a few worrying cases that should not be there. The cache fix may have corrected some of those I think, when inxi is simply guessing wrong.

-----------------------------------------

drgibbon, your failure case is concerning, however, that looks like inxi output, not pinxi current. Confirm, your data looked good and produced the correct output. I'm guessing in this case it's inxi, not pinxi, since that has two of the bugs that inxi had, wrong arch: and L2 cache from L3.

-----------------------------------------

mlangdn, model: AMD FX-6300 looks great, this was a case inxi would almost get wrong for cache, now it 'just works', exactly as hoped. Thanks for confirming.

https://www.cpu-world.com/CPUs/Bulld...20FX-6300.html
Level 1 cache size ? 3 x 64 KB 2-way set associative shared instruction caches
6 x 16 KB 4-way set associative data caches
Level 2 cache size ? 3 x 2 MB 16-way set associative shared exclusive caches
Level 3 cache size 8 MB 64-way set associative shared cache

-----------------------------------------

aus9, a small glitch in the arch detection, that was supposed to be:
arch: zen/zen+
because model 18 is ambiguous and I have not seen enough data on it to confirm. Yours is zen+ however, stepping 1. I read that there was a sort of marketing change without a corresponding stepping change, similar to what Intel did a lot of prior to getting Alder Lake shipped. I've corrected that one, that was a small glitch in the ID.

Rest of data looks good, correction will be in 3.3.09-19

-----------------------------------------

Eeel, great stuff, thanks. All 3 are reporting correctly.

-----------------------------------------

MDKDIO, -z option to filter. Looks like I had the architecture name slightly
wrong, it's actually Core Penryn, updated that. Otherwise looks good.

-----------------------------------------

chrisretusn, odd data, can you run:

Code:
pinxi -Ca --dbg 39 --dbg 8 > cpus-dbg.txt
and paste the output somewhere? Like pastebin.com or something. Something definitely glitched with the L3 data there.

https://www.cpu-world.com/CPUs/K10/A...40WFK42GM.html
Level 1 cache size ? 4 x 64 KB 2-way set associative instruction caches
4 x 64 KB 2-way set associative data caches
Level 2 cache size ? 4 x 512 KB 16-way set associative exclusive caches
Level 3 cache size None

-----------------------------------------

JayByrd, thanks for confirming on AMD K6-2, no /sys cache data in there.

The problem there is actually one of cpuinfo being too vague, and failing to differentiate the cache type. It did do that in the past, and Elbrus does it fine today, l1, l2, l3 all reported correctly and separately.

Problem here is that inxi just can't know what the cache is if it just says cache: in proc/cpuinfo. I'm going to call this one unfixable, unfortunately. The assumption was that CPU cache reported, in the past prior to L3 being a thing, was always L2, but this cpu only has L1, so that's what it reports. that's the problem of using vague imprecise field names in data sources unfortunately, so that one I will mark as not fixable. Possible option is to just change L2 to 'cache' in cases where no explicit l1 l2 l3 was detected. I think that is how inxi used to do it by the way, a long time ago. That's probably safest I think.

I realized that it is imply not possible to dynamically 'know' what the 'cache size: ' field in cpuinfo is referring to, so inxi is not going to guess on that anymore, it will just show as 'cache: [cache size]' without any math, no per core/processor logic, except physical cpu since that always refers to only one physical cpu's cache.

This is surrendering, that is, that data source is just not good enough, but all newer systems will have the very good /sys cache data, and will be extremely accurate, but those attempts to force random cache to be L2 aren't working.

this also is going to be a different output value, if you see 'cache:' now with a cache size and no L2 listed, it means inxi has no idea of what it is, and isn't going to try to guess. Those guesses were often wrong anyway.

-----------------------------------------

bw42, the undefined value errors should be fixed in 3.3.09-20. That was just an oversight, forgot to assign a value when I refactored the internal risc error detections. But looks pretty good otherwise, excellent for that being the first riscv inxi has ever run on that I'm aware of.

When you see in
Network:
Device-1:
...
IF:
IF:

that means it's really working internally, it's succesfully matching the IF to the device.

IF-ID means it couldn't, but that looks exactly right in this case, which is a good sign.

I believe the errors should be gone if you run it again.

-----------------------------------------

baumei, looks good, thanks.

Max processor speed is a value that the system provides to inxi, it just takes whatever it is given and shows it.

Intel Core2 Quad Q8300 is a good example of inxi getting cache wrong, and pinxi right. That core duo quad was actually one I knew inxi could never get right without the refactor.

-----------------------------------------

Last edited by h2-1; 11-29-2021 at 11:43 PM.
 
Old 11-29-2021, 11:39 PM   #102
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
By the way, something that does not appear to be working in general is the die handler, I forgot about that one.

I know the core duo quad above is two dies, for example.

Can you paste: pinxi -C --debug 39 --dbg 8
on pastebin.com or somewhere and I'll check if that data is just not there. I know the core duo quadro had two dies, for sure, with 1 L2 cache per die, they stuck together two core duos basically.

Die ids are not being well supported in linux kernel, I found a qemu issue about that problem, but want to make sure I'm not making a mistake in the logic as well.
 
Old 11-30-2021, 12:23 AM   #103
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,987

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by h2-1 View Post
chrisretusn, odd data, can you run:

Code:
pinxi -Ca --dbg 39 --dbg 8 > cpus-dbg.txt
and paste the output somewhere? Like pastebin.com or something. Something definitely glitched with the L3 data there.

https://www.cpu-world.com/CPUs/K10/A...40WFK42GM.html
Level 1 cache size ? 4 x 64 KB 2-way set associative instruction caches
4 x 64 KB 2-way set associative data caches
Level 2 cache size ? 4 x 512 KB 16-way set associative exclusive caches
Level 3 cache size None
Code:
~# ./pinxi --version
pinxi 3.3.09-20 (2021-11-28)
https://pastebin.com/RHLL91Gu

I also attach the cpus-dbg.txt for your convenience.
Attached Files
File Type: txt cpus-dbg.txt (33.7 KB, 3 views)
 
Old 11-30-2021, 12:41 AM   #104
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 562

Original Poster
Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Thanks very much, that seems to confirm that as far as the kernel/cpu is concerned, it's a single die. And maybe it is. So no apparently issues there. I have been surprised how few cpus show die info, but it's also possible that many or most have moved to single dies with multiple core complexes the way rzyen is doing. Core complexes can't be detected as far as I know. It could also just be that the cpus are not reporting it right. ARM cpus for example report each core as being on its own die, but that is wrong, so inxi has to dump that data for arm cpus where core counts and die counts match.

inxi actually used to synthesize this data, but was wrong so often that is not a feature worth retaining since it's just guesswork and needs constant updating to try to match data, not worth it.

I was getting a little worried because almost none of the cpus are reporting die counts, but I think there may be another method I can use, I"ll look at your data and see, and some other datasets, rzyens were supposed to be 2, then 4, now 8 cores, per die, for example, epycs were 4 cores per die for sure, and still report that way.
 
Old 11-30-2021, 12:59 AM   #105
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,221

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
Quote:
Originally Posted by h2-1 View Post
drgibbon, thanks for the data. This is looking suspiciously like your system generating windows line endings (\r\n, not \n), or adding line endings to /sys values, but that seems really weird, but so far that's what it looks like.
Sorry, I have no idea how those line endings got in there for `ls /sys/devices/system/cpu/cpu*/cache`, very odd. I've updated the paste with correct output.

Quote:
Originally Posted by h2-1 View Post
Can you confirm with current pinxi, updated with -U, that you are NOT seeing this? Ignore the vulnerabilities, my one liner can't catch those
Code:
~$ ./pinxi --version | head -1
pinxi 3.3.09-20 (2021-11-28)

./pinxi -MCazy
Machine:
  Type: Desktop System: Purism product: Librem Mini v: 1.0
  serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: Purism model: Librem Mini v: 1.0 serial: <superuser required>
  BIOS: coreboot v: 4.14-Purism-1 date: 06/18/2021
CPU:
  Info: Quad Core model: Intel Core i7-8565U bits: 64 type: MT MCP
  arch: Comet/Whiskey Lake note: check family: 6 model-id: 8E (142)
  stepping: C (12) microcode: EA cache: L1: 256 KiB
  desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 8 MiB
  desc: 1x8 MiB
  flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 3999
  Speed (MHz): avg: 1237 high: 1600 min/max: 400/4600 cores: 1: 800 2: 800
  3: 1536 4: 1600 5: 973 6: 1587 7: 1049 8: 1551
  Vulnerabilities:
  <etc>

Last edited by drgibbon; 11-30-2021 at 01:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pinxi/inxi huge BSD updates, testers? h2-1 *BSD 0 03-08-2021 11:54 PM
Testersfeedback for new pinxi/inxi feature -E/--bluetooth h2-1 Slackware 2 01-29-2021 06:53 PM
Huge inxi/pinxi upgrade, new features, Logical volumes, raid rewrite, beta testers? h2-1 Slackware 12 12-17-2020 05:04 PM
Beta testers for Perl inxi requested h2-1 Slackware 147 12-14-2020 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration