google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
17.02k stars 2.31k forks source link

unable to read /sys/devices/system/cpu/cpu0/online #3287

Open CelticWebSolutions opened 1 year ago

CelticWebSolutions commented 1 year ago

When starting up, on my system it is unable to provide nodes topology so it reverts to CPU Topology, for some reason it looks for cpu0/online file, which won’t exist seeing as cpu0 is always online. I don’t believe that file exists on any system?

Is there a way to get it to stop looking for cpu0 online file?

Error in log is

2023-03-31T09:40:54.495446138Z W0331 09:40:54.495224 1 sysinfo.go:203] Nodes topology is not available, providing CPU topology 2023-03-31T09:40:54.496503648Z W0331 09:40:54.495717 1 sysfs.go:348] unable to read /sys/devices/system/cpu/cpu0/online: open /sys/devices/system/cpu/cpu0/online: no such file or directory

hopefully there is a way to fix this error.

CelticWebSolutions commented 1 year ago

Perhaps this should just be looking at sys/devices/system/cpu/online and possible to get the total number and state of all CPU?

abate commented 8 months ago

I've the same problem on a synology nas. I guess it's a kernel problem ?

Linux 4.4.302+ #64570 SMP Tue Jun 13 21:39:55 CST 2023 x86_64 GNU/Linux

juxeii commented 5 months ago

Same issue on a Synology 218+