Created attachment 320675 [details]
Description of problem:
gnome-system-monitor lists only 6 CPU's under the System tab. /proc/cpuinfo shows 8.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Launch gnome-system-monitor
2. Select System tab
See screenshot attached
See /proc/cpuinfo attached
Created attachment 320677 [details]
Created attachment 320996 [details]
I've tracked this to libtop deficiency reading larger /proc/cpuinfo.
This minimal libgtop patch fixes/workarounds it for me.
Yanko, while using g_file_get_contents() is better in principle, I don't see why it would help here since the /proc/cpuinfo in question is only ~5K and so fits within the 16K buffer.
(Also the patch needs to free the returned contents).
Soren, I tried to explain it in the upstream bugreport. The way libgtop tries to read the file (single read) comes up short, around 4K, it has to be read again to get the next part and libgtop doesn't do that. I've been told this is to be expected when reading /proc files, something about kernel page size.
libgtops file_to_buffer needs to get smarter about this or it should just drop the whole thing and use glib which manages to get the whole file contents in tact.
libgtop2-2.22.3-2.fc9 has been submitted as an update for Fedora 9.
libgtop2-2.22.3-2.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update libgtop2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-9579
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here:
libgtop2-2.22.3-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
libgtop2-2.24.0-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.