-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add ballooning monitor for VMs #945
base: main
Are you sure you want to change the base?
Conversation
603800c
to
289a00d
Compare
289a00d
to
57b2326
Compare
ghaf-pre-merge-pipeline build failed because of a glitch in the HW test agent, not because of this PR. |
57b2326
to
9bc131b
Compare
I'd like some preliminary testing results on this; just normal usage mixed with heavy web apps in browser. |
I will do some preliminary testing on this. |
I made some testing on this. Opened all apps. Then opened 3 chrome windows, run youtube video in one, New York Times in one, played online video game in one. This caused the original memory capacity (2.79G) of chrome-vm to be exceeded but then obviously memory ballooning works since it dynamically increased the available memory in chrome-vm to around 4G. In addition the extra memory was released from chrome-vm when I closed the chrome windows. |
I ran also ci-test-automation performance tests on this. Results are ok. |
@@ -168,7 +168,8 @@ let | |||
|
|||
microvm = { | |||
optimize.enable = false; | |||
mem = vm.ramMb; | |||
mem = vm.ramMb / 2; | |||
balloonMem = vm.ramMb / 2; |
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.
is this just a test case? of is it an effort at optimization?
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 bit of both. The current plan is to only enable ballooning for appvms; but the 50-50 split is just a guess.
9bc131b
to
c123e12
Compare
c123e12
to
2c74f98
Compare
1e94bd5
to
e537741
Compare
Add ghaf-memory-monitor and start it for every VM that has a balloon size defined. Signed-off-by: Santtu Lakkala <[email protected]>
Signed-off-by: Santtu Lakkala <[email protected]>
Signed-off-by: Santtu Lakkala <[email protected]>
Signed-off-by: Santtu Lakkala <[email protected]>
Signed-off-by: Santtu Lakkala <[email protected]>
Signed-off-by: Santtu Lakkala <[email protected]>
Signed-off-by: Santtu Lakkala <[email protected]>
6ee55cc
to
7071c24
Compare
Description of changes
Add ballooning monitor and monitor all microvms that have a balloon size defined.
Enable balloon for app VMs, with half of their memory made dynamic.
microvm.nix PR: astro/microvm.nix#324
ghaf-mem-manager PR: tiiuae/ghafpkgs#19
Checklist for things done
x86_64
aarch64
riscv64
make-checks
and it passesnixos-rebuild ... switch
Instructions for Testing