https://bugs.kde.org/show_bug.cgi?id=410678

            Bug ID: 410678
           Summary: Internal buffer too small to read \'/proc/cpuinfo\'
           Product: ksysguard
           Version: 5.16.4
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: ksysguard
          Assignee: ksysguard-b...@kde.org
          Reporter: billflemin...@gmail.com
  Target Milestone: ---

Created attachment 121989
  --> https://bugs.kde.org/attachment.cgi?id=121989&action=edit
Fixed with huge CPUINFOBUFSIZE number.

SUMMARY
Ksysguard cannot parse cpu info on CPUs with lots of cores. Cannot see pretty
CPU Freq turbo graphs on Ryzen 9.

STEPS TO REPRODUCE
1. Buy Ryzen 9 or Threadripper 12 core and above
2. Prevent your wallet from filing divorce papers. (optional)
3. Run Ksysguard
4. Check system log file for errors

OBSERVED RESULT
Internal buffer too small to read \'/proc/cpuinfo\'

EXPECTED RESULT
Should be able to see CPU Frequency and add to graph

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Latest version compiled on ARCH

ADDITIONAL INFORMATION

See ./ksysguard/ksysguardd/Linux/cpuinfo.c:43: CPUINFOBUFSIZE
For my 3900X CPU it reads about 1504 char per CPU core when you read
proc/cpuinfo. While this is fixed by setting a huge number for CPUINFOBUFSIZE I
recommend that either you increase the array based on number of CPUs, or use a
smaller buffer and re-use it for each CPU.
Otherwise the huge size for CPUINFOBUFSIZE to accommodate new CPUs (128
threads) would be a pretty big silly number.

After changing CPUINFOBUFSIZE and make install I can see the purdy graph
attached. Next stop moar overclocking...

Bill

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to