RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 726397 - glibtop_get_sysinfo() reports the wrong number of CPUs
Summary: glibtop_get_sysinfo() reports the wrong number of CPUs
Keywords:
Status: CLOSED DUPLICATE of bug 1013848
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libgtop2
Version: 6.2
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: David King
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-28 13:45 UTC by Cosimo Cecchi
Modified: 2015-02-13 10:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-13 10:08:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Cosimo Cecchi 2011-07-28 13:45:59 UTC
Description of problem:

glibtop_get_sysinfo() reports the wrong number of CPUs.
On a test machine which has 8x Intel Xeon E7-8870 physical CPUs, each one of them with 10 cores and 20 threads, the ncpus field of the returned glibtop_sysinfo structure is set to 20, which does not reflect either the physical CPUs (8), nor the actual available cores (160).

Version-Release number of selected component (if applicable):

libgtop2-2.28.0-3.el6

How reproducible:

Always.

Comment 3 Suzanne Logcher 2012-02-14 23:11:55 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 6 Bruno Cornec 2015-02-13 04:44:21 UTC
In order to solve that issue I did the following in the SPEC file before launching make:

perl -pi -e 's/char buffer \[BUFSIZ\]/char buffer [10*BUFSIZ]/' sysdeps/linux/cpu.c
perl -pi -e 's/char buffer \[BUFSIZ\]/char buffer [10*BUFSIZ]/' sysdeps/linux/open.c
perl -pi -e 's/char buffer \[16384\]/char buffer [40*16384]/' sysdeps/linux/sysinfo.c
perl -pi -e 's/#define GLIBTOP_NCPU\s*256/#define GLIBTOP_NCPU  512/' ./include/glibtop/cpu.h

Also linked to upstream issue: https://bugzilla.gnome.org/show_bug.cgi?id=323354

That build modification has been tested successfully on a 480 threads system.

Comment 8 David King 2015-02-13 10:08:57 UTC
A more complete fix is required, which includes bumping the soversion of the library. Additionally, several reverse dependencies will need to be rebuilt (such as gnome-system-monitor and gnome-applets). This is roughly what was done for RHEL 7 in bug 1082123.

This bug report seems to completely overlap with 1013848 (for RHEL 6), which explains that the packages which need to be rebuilt are not on the list of packages to get updated for RHEL 6.7. Closing this bug as a duplicate of the newer bug, as it has more information.

*** This bug has been marked as a duplicate of bug 1013848 ***


Note You need to log in before you can comment on or make changes to this bug.