Bug 974075

Summary: SAP 5.10: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
Product: Red Hat Enterprise Linux 5 Reporter: Henning Sackewitz <henning.sackewitz>
Component: sblimAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Alois Mahdal <amahdal>
Severity: high Docs Contact:
Priority: high    
Version: 5.10CC: amahdal, amascari, fdanapfe, henning.sackewitz, linux, lmiccini, lmiksik, psklenar, vcrhonek
Target Milestone: rc   
Target Release: 5.11   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sblim-1-50.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 974071 Environment:
Last Closed: 2014-09-16 00:31:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Henning Sackewitz 2013-06-13 11:45:27 UTC
+++ This bug was initially created as a clone of Bug #974071 +++

The values for UserModeTime and KernelModeTime in CIM class Linux_UnixProcess are incorrectly calculated.

OSBase_UnixProcess.c:

231 if ( (fpstat=fopen(cmd,"r")) != NULL ) {
232 fscanf(fpstat,"%s %s %s %s %s %s %s %s %s %s %s %s %s %s "
233 "%lld %lld %s %s %s %s %s %ld",
234 &umtime,&kmtime,&ctime );
235 fclose(fpstat);
236 (sptr)->kmtime = kmtime10;
237 (sptr)->umtime = umtime*10;

The code is scanning fields 15 and 16 from /proc/[pid]/stat but it should use fields 14 and 15 on current Linux kernels as documented in
/usr/src/linux/Documentation/filesystems/proc.txt.

As a result, KernelModeTime is used for UserModeTime, and Child User Time for KernelModeTime.

See https://sourceforge.net/p/sblim/bugs/2644/ for upstream bug fix.

Comment 1 Frank Danapfel 2014-01-08 07:34:00 UTC
Removed RFE from title since this is really a bugfix and not a feature request

Comment 2 Luca Miccini 2014-01-28 15:34:03 UTC
On behalf of SAP LinuxLab I confirm that there will be the necessary commitment to test the new packages.  
Luca Miccini
Red Hat partner TAM @ SAP LinuxLAB

Comment 5 RHEL Program Management 2014-01-29 12:08:47 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 11 errata-xmlrpc 2014-09-16 00:31:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1201.html