-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Memory Tuning GSoC #57636
Memory Tuning GSoC #57636
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few cosmetic comments, but nothing serious. ACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
5fa3e80
to
7f066cf
Compare
bd6118d
to
9018312
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 small things to improve still and we're good!
7a16ea4
to
924bebe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ready from my POV
@Akm0d could you review that PR? it should be good to go IMO |
@dwoz could you merge this PR while it's ACKed, tests are green and doesn't need rebase yet? |
re-run all |
@dwoz would be nice to have this PR merged before the freeze |
re-run lint |
@Akm0d can you approve that PR again? had to be rebased due to pre-commit hook changes. |
What does this PR do?
Feature request closes #57639
This PR makes memory tuning option available which allow much greater control of memory allocation. configurable parameters are:
hard_limit
soft_limit
swap_hard_limit
min_guarantee
In addition,
_handle_unit
function is added which uses regex to parse user input into the corresponding size.Fixes a bug on adding sub element to existing XML tree.
Element.append()
should be used to append an element into existing XML tree. When usingElementTree.SubElement()
we must make sure the parent element is from the target domain XML tree.Refactored XML diff code, added a few helper functions to manipulate xml node.
More robust check is added
if 'initrd' in boot and boot.initrd
to ensureNone
object will not cause an exception if it is passed to initialise a new VM .Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes/No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.