FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Thema gestartet von: Ralf W. am 07 April 2015, 22:12:43

Titel: 42_SYSMON - cpu_core_count zu hoch
Beitrag von: Ralf W. am 07 April 2015, 22:12:43
Hallo,

gerade Update durchgeführt. Dabei war auch SYSMON. Neu sind cpu_model_name und cpu_core_count. Model ist ok. Der Count zeigt 256 an.

MfG
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: hexenmeister am 07 April 2015, 23:55:46
256? Na Du hast ein feines Maschinchen ;)

Was liefert cat /sys/devices/system/cpu/kernel_max?
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: chris1284 am 08 April 2015, 07:50:00
lahme kiste meinst du... meiner hat
Zitatcpu_core_count 512

Zitatroot@SRV01:~# cat /sys/devices/system/cpu/kernel_max
511
--> 1 differenz zum reading? was sagt das überhaupt aus?

cpu model passt
Zitatcpu_model_name Intel(R) Celeron(R) CPU N2930 @ 1.83GHz
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: Joker am 08 April 2015, 07:57:47
Ich glaube, kernel_max sagt aus, wieviele Cores der Kernel unterstützen _könnte_ (angefangen bei Index 0), nicht wieviel wirklich da sind.
Evtl. muss man ein anderes file aus dem Verzeichnis nehmen ("online"?), oder es gibt da noch was anderes...
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: hexenmeister am 08 April 2015, 10:02:37
Hm, doof. Bei mir liefert korrekterweise 2.
Schade.
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: chris1284 am 08 April 2015, 10:49:07
Zitatcat /sys/devices/system/cpu/present
liefert 0-3 also 4.
Zitatcat /sys/devices/system/cpu/online
liefert 0-3 also 4.
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: hexenmeister am 08 April 2015, 11:25:32
Das ist  doch schon mal was ;)
Werde ich heute abend bei mir prüfen.
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: hexenmeister am 08 April 2015, 23:44:27
Funktioniert bei mir auch, scheint halbwegs allgemein zu sein. Baue ich ein.
Titel: Antw:42_SYSMON - cpu_core_count zu hoch
Beitrag von: Magic01 am 21 November 2016, 16:48:21
Hi Hexenmeister,

hattest du die Änderung eigentlich mal eingebaut?
Ich habe gerade versucht eine vortexbox zu monitoren und bekomme:
cpu_core_count       1024

Auf der Konsole der vortexbox bekomme ich:
lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 15
Model name:            Intel(R) Xeon(R) CPU           X3220  @ 2.40GHz
Stepping:              11
CPU MHz:               2400.000
CPU max MHz:           2400.0000
CPU min MHz:           1596.0000
BogoMIPS:              4787.36
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow vnmi flexpriority dtherm
[root@vortexbox ~]# cat /sys/devices/system/cpu/online
0-3


Das System ist:
cat /proc/version
Linux version 4.7.10-100.fc23.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC) ) #1 SMP Wed Oct 26 23:29:32 UTC 2016

Sysmon zeigt mir Version 2.2.8 an und es scheinen keine Updates für das Modul vorhanden zu sein.