Bug 680124

Summary: s390x /proc/cpuinfo returns wrong number of processors on RHEL6
Product: Red Hat Enterprise Linux 6 Reporter: Martin Minar <mminar>
Component: rhn-client-toolsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Martin Minar <mminar>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: mkoci
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-client-tools-1.0.0-56.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 691743 (view as bug list) Environment:
Last Closed: 2011-05-19 13:06:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 691743    

Description Martin Minar 2011-02-24 12:46:21 UTC
Description of problem:
s390x /proc/cpuinfo returns wrong number of processors therefor after registration there is wrong number of processors in Satellite Hardware information.

Version-Release number of selected component (if applicable):
rhn-client-tools-1.0.0-38.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Log into s390x machine that has more than 1 processor
2. cat /proc/cpuinfo
3. ls -d  /sys/devices/system/cpu/cpu[0-9] | grep -c cpu[[:digit:]]
4. rhn_register into Satellite and check System > Hardware
  
Actual results:
Numbers differ

Expected results:
Same numbers

Additional info:
RHEL5 /proc/cpuinfo shows proper information.
Explanation for this bug is in bug 621041 comment 18.

Comment 2 Martin Minar 2011-02-25 07:53:33 UTC
After discussion with dhorak short clarification.

There is cpuplugd daemon that automaticaly adds/removes cpus based on load and /proc/cpuinfo shows number of cpus defined in that moment. Regarding the fact that this bug is not an issue in RHEL5 - maybe this daemon is not activated by default or it depends on kernel.

Strategy of using /sys/devices/cpu for getting total number of cpus should be the valid on.

Comment 3 Miroslav Suchý 2011-03-17 09:40:36 UTC
Fixed in spacewalk.git in commits:
823888291bdc6f9cd4d843d18bd7ea88241fac89
3ecd060daf6b53baf63122c80c1d52fdbcba6c38

Cherry picked to satellite.git as commits:
ba1b95e5540c39b2aeacfdb4f0a42e6de97e1453
dd8f84ad7fb07be944f5796abaf134806d3d4413

Comment 5 Martin Minar 2011-03-18 13:32:59 UTC
Verified in rhn-client-tools-1.0.0-56.el6 - Hardware tab now shows correct number.

Comment 6 errata-xmlrpc 2011-05-19 13:06:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0565.html