Bug 720660 - Allow the guest scheduler to reduce load on a cpu that have lots of steal time
Summary: Allow the guest scheduler to reduce load on a cpu that have lots of steal time
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rik van Riel
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 612320
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-12 12:21 UTC by Glauber Costa
Modified: 2015-01-27 16:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-27 16:37:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Glauber Costa 2011-07-12 12:21:09 UTC
When a cpu has lots of steal time, while the other cpus does not, the guest scheduler, not knowing about this fact, will still try to equalize the load in guests cpus.

Upstream now has a patch that includes steal time information in scheduler decisions.

The best and easy way to demonstrate this problem, is by resorting to pinning:
* For N cpus, start N cpu hogs in the host ( The command "yes" in background will do). Pin each process to a different cpu.
* In the guest, with N vcpus, start at least 5 * N cpu hogs.
* Pin each vcpu to a different cpu.
* increase the priority of one of the host cpu hogs
* At this point, the non-patched kernel will still see an equal distribution of processes inside the guest. The patched kernel, will not.

Comment 6 Rik van Riel 2015-01-27 16:37:59 UTC
This is more of a feature enhancement, which we were unsure whether we would need it or not when steal time was introduced in RHEL 6 KVM. We have never seen a customer issue that suggests we need this, so the risk of adding the feature is not worthwhile.


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