-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu entitlement when hypervisor is present #30
Comments
Indeed, |
Regarding the first problem, yes the code needs to be changed to read |
@mpirvu thanks for confirming. I will open a PR to fix the two issues. |
ashu-mehra
pushed a commit
to ashu-mehra/openj9
that referenced
this issue
Sep 19, 2017
Initialize TR_CpuEntitlement::_hypervisorPresent to TR::maybe. Fix the condition in TR_CpuEntitlement::computeAndCacheCpuEntitlement that compares _numTargetCpu with _guestCpuEntitlement. Issue: eclipse-openj9#30 Signed-off-by: Ashutosh Mehra <[email protected]>
JamesKingdon
pushed a commit
to JamesKingdon/openj9
that referenced
this issue
Apr 18, 2019
Initialize TR_CpuEntitlement::_hypervisorPresent to TR::maybe. Fix the condition in TR_CpuEntitlement::computeAndCacheCpuEntitlement that compares _numTargetCpu with _guestCpuEntitlement. Issue: eclipse-openj9#30 Signed-off-by: Ashutosh Mehra <[email protected]>
tajila
pushed a commit
to tajila/openj9
that referenced
this issue
Aug 6, 2019
* Fixed up the last iTable for each class * Set default memory state for the image's invalid itable * Moved the invalid itable allocation to a function Signed-off-by: Brady Jessup<[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe there are two problems in JIT with respect to getting cpu entitlement information from hypervisor:
TR_CpuEntitlement::computeAndCacheCpuEntitlement
It looks like _guestCpuEntitlement is in percentage, but _numTargetCpu is not. The condition
_numTargetCpu < _guestCpuEntitlement
is likely to be comparing incorrect values in that case.TR_CpuEntitlement::isHypervisorPresent
will always returns false, no matter what._hypervisorPresent
gets a default value ofTR_no
. I don't see it ever getting set toTR_maybe
which meansisHypervisorPresent
will always returnfalse
.I hope I have not missed anything here.
@mpirvu, any idea why is it like this? It appears this is just dead code right now.
The text was updated successfully, but these errors were encountered: