Conky for Multicore/Multithread CPUs?

Show us how you are setting up MX
Message
Author
User avatar
Acid74
Posts: 6
Joined: Sat Dec 17, 2022 6:28 am

Conky for Multicore/Multithread CPUs?

#1 Post by Acid74 »

Hi there fellow MXers,


does anyone of you have a good suggestion for a CPU conky for multicore server CPUs?

I've set up a system with dual server CPUs 36cores/72threads in total and it would be handy to watch those in a quick glimpse with a conky. Most I've tested are 4 or 8 core max...

Any suggestion is welcome.

Here some quick info:

Code: Select all

System:
  Kernel: 6.1.0-13-amd64 [6.1.55-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-13-amd64 root=UUID=<filter> ro quiet nosplash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel, plank wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.1_x64 Libretto October 15  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop Mobo: JGINYUE model: X99-8D4/2.5G Server serial: <superuser required>
    UEFI: American Megatrends v: 5.11 date: 05/29/2023
CPU:
  Info: model: Intel Xeon E5-2696 v3 bits: 64 type: MT MCP SMP arch: Haswell level: v3 note: check
    built: 2013-15 process: Intel 22nm family: 6 model-id: 0x3F (63) stepping: 2 microcode: 0x49
  Topology: cpus: 2x cores: 18 tpc: 2 threads: 36 smt: enabled cache: L1: 2x 1.1 MiB (2.2 MiB)
    desc: d-18x32 KiB; i-18x32 KiB L2: 2x 4.5 MiB (9 MiB) desc: 18x256 KiB L3: 2x 45 MiB (90 MiB)
    desc: 1x45 MiB
  Speed (MHz): avg: 1288 high: 3800 min/max: 1200/3800 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 1197 2: 1197 3: 1210 4: 1200 5: 1200 6: 1200 7: 1200 8: 1200 9: 1201
    10: 1200 11: 1540 12: 1200 13: 1200 14: 1200 15: 1200 16: 1239 17: 1200 18: 1200 19: 1200
    20: 1200 21: 1200 22: 1218 23: 1899 24: 1400 25: 1200 26: 1200 27: 1414 28: 1305 29: 1500
    30: 1197 31: 1358 32: 1225 33: 1242 34: 1310 35: 1220 36: 1400 37: 1200 38: 1200 39: 1200
    40: 1200 41: 1200 42: 1200 43: 3800 44: 1200 45: 1300 46: 1200 47: 1600 48: 1200 49: 1200
    50: 1200 51: 1200 52: 1200 53: 1200 54: 1200 55: 1200 56: 1200 57: 1200 58: 1200 59: 1407
    60: 1200 61: 1200 62: 1197 63: 1389 64: 1368 65: 1200 66: 1200 67: 1200 68: 1264 69: 1359
    70: 1200 71: 1200 72: 1200 bogomips: 330500
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB
    filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 33 [Radeon RX 7700S/7600S] vendor: Gigabyte driver: amdgpu v: kernel
    arch: RDNA-3 code: Navi-3x process: TSMC n5 (5nm) built: 2022+ pcie: gen: 4 speed: 16 GT/s
    lanes: 8 ports: active: HDMI-A-2 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 84:00.0 chip-ID: 1002:7480
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22") s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-2 mapped: HDMI-A-1 model: LG (GoldStar) 22MB37 serial: <filter> built: 2017
    res: 1920x1080 hz: 60 dpi: 96 gamma: 1.2 size: 510x290mm (20.08x11.42") diag: 587mm (23.1")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (gfx1102 LLVM 15.0.6 DRM 3.49
    6.1.0-13-amd64) direct-render: Yes
Audio:
  Device-1: Intel C610/X99 series HD Audio driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:8d20 class-ID: 0403
  Device-2: AMD driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 8
    bus-ID: 84:00.1 chip-ID: 1002:ab30 class-ID: 0403
  API: ALSA v: k6.1.0-13-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I225-V driver: igc v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
    port: N/A bus-ID: 05:00.0 chip-ID: 8086:15f3 class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Intel Ethernet I225-V driver: igc v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
    port: N/A bus-ID: 06:00.0 chip-ID: 8086:15f3 class-ID: 0200
  IF: eth1 state: down mac: <filter>
RAID:
  Hardware-1: Hewlett-Packard Smart Array Gen8 Controllers driver: hpsa v: 3.4.20-200 port: 6000
    bus-ID: 02:00.0 chip-ID: 103c:323b rev: N/A class-ID: 0104
Drives:
  Local Storage: total: 1.14 TiB used: 35.22 GiB (3.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:5 vendor: Samsung model: MZVLB256HAHQ-000H1 size: 238.47 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EXD70H1Q temp: 24.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Western Digital model: WD Blue SN570 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 234110WD temp: 26.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 238.22 GiB size: 233.43 GiB (97.99%) used: 35.22 GiB (15.1%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:7
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:6
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 11 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 27.0 C mobo: N/A gpu: amdgpu temp: 28.0 C mem: 43.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Repos:
  Packages: pm: dpkg pkgs: 2391 libs: 1281 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/signal-xenial-added-by-mxpi.list
    1: deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
Info:
  Processes: 762 Uptime: 46m wakeups: 1 Memory: 125.74 GiB used: 3.64 GiB (2.9%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Thanks a lot in advance...

Kind regards
Acid74

User avatar
siamhie
Global Moderator
Posts: 3827
Joined: Fri Aug 20, 2021 5:45 pm

Re: Conky for Multicore/Multithread CPUs?

#2 Post by siamhie »

Which conky have you tried?
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
Eadwine Rose
Administrator
Posts: 15343
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky for Multicore/Multithread CPUs?

#3 Post by Eadwine Rose »

Code: Select all

${color Tan1}CPU usage${goto 105}${color}${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}% ${cpu cpu4}% ${cpu cpu5}% ${cpu cpu6}% ${cpu cpu7}% ${cpu cpu8}%
This is mine for 8 cores, straight copy paste. Not a clue if that works for you.
MX-23.6_x64 July 31 2023 * 6.1.0-40amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
m_pav
Developer
Posts: 1911
Joined: Sun Aug 06, 2006 3:02 pm

Re: Conky for Multicore/Multithread CPUs?

#4 Post by m_pav »

Just for clarity, Eadwine Roses' example is a one liner from a conky, not the conky in and of itself.
@Acid74 you may want to try inserting this line in an appropriate space within another conky, or try making one from scratch.

If you study the layout and structure of even a few of the existing conkys using Conky Manager and exit them without making any changes, you'll begin to see there are blocks of text that appear to have similarities to a web pages' css between the 2 sets of flags as in the example below

conky.config = {
a bunch of lines containing configs concerning style, placement etc.
};
conky.text = [[
cool things to display
}};

The content between the start and end points of the { curly brackets }; controls the look, or theme if you will

The content between the square [[ double brackets ]]; is where you'll find the particulars for what is to be displayed.

If you have an invalid setting between the double square brackets, the conky will not display.

You can try copying the content Eadwine Rose provided into copy of another conky that already has a very similar processor line to see if it works for you. It should be possible to see a pattern in the text and decipher it's operation. Sometimes, all that is needed is a single typed character into the line, or removal of one to get a malformed line working.
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
siamhie
Global Moderator
Posts: 3827
Joined: Fri Aug 20, 2021 5:45 pm

Re: Conky for Multicore/Multithread CPUs?

#5 Post by siamhie »

Here's an example of what my 8 core conky looks like. It displays the load of each core.

Code: Select all

conky.text = [[
${alignc}${exec cat /etc/mx-version | cut -c 1-20}
${alignc}${kernel}
${hr}
${alignc} Brand: ${execi 1000 cat /proc/cpuinfo | grep 'vendor_id' | sed -e 's/vendor_id.*: //'| uniq | cut -c 1-29}
${alignc} Model: ${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 5-18}
${alignc} Cores: ${execi 1000 cat /proc/cpuinfo | grep 'cpu cores' | sed -e 's/cpu cores.*: //'| uniq | cut -c 1-29}
${alignc} Threads: ${execi 1000 cat /proc/cpuinfo | grep 'siblings' | sed -e 's/siblings.*: //'| uniq | cut -c 1-29}

${alignc} CPU Temp   ${color #00FF00}${hwmon 3 temp 1}${color white}° C
${alignc} GPU Temp   ${color #00FF00}${hwmon 2 temp 1}${color white}° C
${alignc} Nvme1 Temp  ${color #00FF00}${hwmon 0 temp 1}${color white}° C 
${alignc}Nvme2 Temp  ${color #00FF00}${hwmon 1 temp 1}${color white}° C

${alignc} System Load   ${cpu cpu0}%

${goto 50} Core 1 ${alignc}   ${cpu cpu1}%
${goto 50} Core 2 ${alignc}   ${cpu cpu2}%
${goto 50} Core 3 ${alignc}   ${cpu cpu3}%
${goto 50} Core 4 ${alignc}   ${cpu cpu4}%
${goto 50} Core 5 ${alignc}   ${cpu cpu5}%
${goto 50} Core 6 ${alignc}   ${cpu cpu6}%
${goto 50} Core 7 ${alignc}   ${cpu cpu7}%
${goto 50} Core 8 ${alignc}   ${cpu cpu8}%
${hr}
RAM  ${legacymem} ${alignr} $memmax

${top_mem name 1}${alignr}${top_mem mem_res 1}
${top_mem name 2}${alignr}${top_mem mem_res 2}
${top_mem name 3}${alignr}${top_mem mem_res 3}
${top_mem name 4}${alignr}${top_mem mem_res 4}
${top_mem name 5}${alignr}${top_mem mem_res 5}
${hr}${voffset 5}
Root:   ${fs_used /} ${alignr}/ ${fs_size /}
Stream: ${fs_used /media/Stream/} ${alignr}/  ${fs_size /media/Stream/}
Data:   ${fs_used /media/Data/}${alignr}/ ${fs_size /media/Data/}
${hr}${voffset 5}
${alignc}${font DejaVu Serif}⇊${font} Download Speed 
${goto 100}${downspeed wlan0}  
${alignc}Downloaded ${totaldown wlan0}

${alignc}${font DejaVu Serif}⇈${font} Upload Speed 
${goto 100}${upspeed wlan0}  
${alignc}Uploaded ${totalup wlan0}

]];
8-core-conky.jpg
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Post Reply

Return to “Themes and Screenshots”