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 974073 - SAP 7.0: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
Summary: SAP 7.0: sblim-cmpi-base: wrong UserModeTime and KernelModeTime
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sblim-cmpi-base
Version: 7.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: 7.0
Assignee: Vitezslav Crhonek
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On: 974071
Blocks: 1018952 1050219
TreeView+ depends on / blocked
 
Reported: 2013-06-13 11:44 UTC by Henning Sackewitz
Modified: 2016-09-09 05:26 UTC (History)
7 users (show)

Fixed In Version: sblim-cmpi-base-1.6.2-7.el7
Doc Type: Enhancement
Doc Text:
Clone Of: 974071
Environment:
Last Closed: 2014-06-13 12:41:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Henning Sackewitz 2013-06-13 11:44:30 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 2 Frank Danapfel 2014-01-08 07:37:28 UTC
Removed RFE from title since this is really a bugfix and not a feature request

Comment 4 Ludek Smid 2014-06-13 12:41:36 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Comment 5 Alois Mahdal 2016-09-09 05:26:23 UTC
"Fixed In Version" field was clearly wrong (fedora build for a RHEL7 bug).  I'm assuming the version @rhack reviewed it with (I think "best guess" is better than invalid value for this field).


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