Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 570610

Summary: [RHEL5]: Add thread_siblings_list to /sys
Product: Red Hat Enterprise Linux 5 Reporter: Chris Lalancette <clalance>
Component: kernelAssignee: Prarit Bhargava <prarit>
Status: CLOSED ERRATA QA Contact: Mike Gahagan <mgahagan>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: jaeshin, qcai
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 20:38:02 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:
Attachments:
Description Flags
Initial patch
none
RHEL5 fix for this issue none

Description Chris Lalancette 2010-03-04 20:39:41 UTC
Description of problem:
libvirt depends on the kernel to get socket/core/thread topology information.  Currently this information is parsed out of /proc/cpuinfo, but I'm re-working the code to use /sys/devices/system/cpu (see BZ 570527 for more details).  As part of that, it would be easier to parse a formatted list of thread and core siblings instead of the raw bitmask.  RHEL-5 currently provides the raw bitmask in /sys/devices/system/cpu/cpu[0-9]*/topology/thread_sibilings, but it would be easier to parse /sys/devices/system/cpu/cpu[0-9]*/topology/thread_sibilings_list, which is available upstream.

Comment 1 Prarit Bhargava 2010-03-04 20:42:15 UTC
Created attachment 397919 [details]
Initial patch

clalance, this initial patch should get you started.

P.

Comment 2 Prarit Bhargava 2010-03-05 19:41:47 UTC
Created attachment 398111 [details]
RHEL5 fix for this issue

Comment 3 RHEL Program Management 2010-05-20 12:41:37 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Jarod Wilson 2010-05-25 21:11:58 UTC
in kernel-2.6.18-200.el5
You can download this test kernel from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.

Comment 7 Mike Gahagan 2010-12-07 20:01:36 UTC
confirmed thread_siblings_list is in 2.6.18-232.el5

[root@localhost topology]# cat thread_siblings
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
[root@localhost topology]# cat thread_siblings_list 
0
[root@localhost topology]# pwd
/sys/devices/system/cpu/cpu0/topology
[root@localhost topology]# cat ../../cpu1/topology/thread_siblings
00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000002
[root@localhost topology]# cat ../../cpu1/topology/thread_siblings_list 
1

Comment 9 errata-xmlrpc 2011-01-13 20:38:02 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/RHSA-2011-0017.html