GNOME Bugzilla – Bug 753731
Unreliable cpu detection through glibtop
Last modified: 2015-09-01 19:56:53 UTC
Created attachment 309407 [details] [review] Path to use proprer sysconf glibtop not provides the number of cpus on the machine directly, relying on a list with the current load of each core. Original code assume that a 0 load core is the end of cpu list, which is invalid in cases of machines with high number of cores, that happens to some cores stay idle with 0 load. Since this can happens in any core number, if a machine has 192 cores, but the core number 5 has 0 load, then 4 cores will be wrongly reported. Using standard sysconf api solves the issue in a simple way.
I'm not sure about how standard sysconf is. But glibtop_get_sysinfo() works. So how about this: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=549e2e3308620810dd795321d02f041e8ab58d29 ?
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.