Bug 711326 - xenpv: backport sched_clock change
Summary: xenpv: backport sched_clock change
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Igor Mammedov
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 653816
TreeView+ depends on / blocked
 
Reported: 2011-06-07 08:04 UTC by Andrew Jones
Modified: 2011-12-06 13:33 UTC (History)
4 users (show)

Fixed In Version: kernel-2.6.32-160.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 13:33:05 UTC
Target Upstream Version:


Attachments (Terms of Use)
[RHEL6.2 PATCH] xen: drop xen_sched_clock in favour of using plain wallclock time (2.71 KB, patch)
2011-06-13 13:52 UTC, Igor Mammedov
no flags Details | Diff
script to reproduce the defect (763 bytes, text/plain)
2011-09-07 08:03 UTC, Qixiang Wan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1530 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux 6 kernel security, bug fix and enhancement update 2011-12-06 01:45:35 UTC

Description Andrew Jones 2011-06-07 08:04:06 UTC
commit 8a22b9996b001c88f2bfb54c6de6a05fc39e177a
Author: Jeremy Fitzhardinge <jeremy.fitzhardinge>
Date:   Mon Jul 12 11:49:59 2010 -0700

    xen: drop xen_sched_clock in favour of using plain wallclock time

This upstream patch was found while doing analysis for bug 709856. While it's unclear that this patch will resolve any other issues (now that we've already implemented a fix bug 709856). We should backport it and give it some good testing, as it may.

Comment 2 RHEL Program Management 2011-06-07 08:21:12 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 3 Igor Mammedov 2011-06-13 13:52:54 UTC
Created attachment 504445 [details]
[RHEL6.2 PATCH] xen: drop xen_sched_clock in favour of using plain wallclock time

Comment 4 Igor Mammedov 2011-06-13 14:00:13 UTC
A bit of history about this patch
http://comments.gmane.org/gmane.comp.emulators.xen.devel/86173

Comment 5 Aristeu Rozanski 2011-06-27 19:04:45 UTC
Patch(es) available on kernel-2.6.32-160.el6

Comment 8 Qixiang Wan 2011-09-07 08:03:57 UTC
Created attachment 521811 [details]
script to reproduce the defect

Verified with kernel-2.6.32-193.el6.

Reproduced the defect with the script provided in
http://comments.gmane.org/gmane.comp.emulators.xen.devel/86173 with minor update.

Boot up RHEL6.1 GA x86_64 PV guest with 4 vcpus (host processor : Intel Xeon E7- 4850), and ran the attached script, it got large value of user or sys, like:
# time perl test.pl
[...]
Files=300, Tests=900, 31 wallclock secs ( 2.25 usr  4.65 sys + 6148914822.77 cusr 12297829458.52 csys = 18446744288.19 CPU)
Result: PASS

real	0m31.337s
user	0m0.001s
sys	204963824m23.408s

After update guest kernel to kernel-2.6.32-193.el6, ran the attached script for several times, the results looks reasonable:
# time perl test.pl
[...]
Files=300, Tests=900, 32 wallclock secs ( 2.31 usr  4.55 sys +  7.14 cusr 29.03 csys = 43.03 CPU)
Result: PASS

real	0m32.446s
user	0m9.985s
sys	0m33.772s

So change bug to VERIFIED.

Comment 9 errata-xmlrpc 2011-12-06 13:33:05 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/RHSA-2011-1530.html


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