zram: enable zram swap for the vms to reduce pressure#1770
zram: enable zram swap for the vms to reduce pressure#1770brianmcgillion merged 1 commit intotiiuae:mainfrom
Conversation
|
@vunnyso, @kajusnau - in testing I could see that already 54 mb of the zram was used on reboot of the audio vm. This is not on the store disk images, but the normal ones, so I think that answers the question about whether we need the swap or not. It should be cheaper, in terms of performance hit and impact on the system enabling the zram, than deflating the baloon for the guests. however, the system vms do not have baloon and it was turned off in the app vms. I am not sure why balooning is not available at all in the sysvms? maybe @slakkala you might remember? I am also thinking about increasing the swap size on the host, to provide even more flexability, if we are deflating. |
The vms, have limited memory in some cases and when performing tasks such as a resume, it can be seen that some drivers are failing to aquire enough memory to reinitialize. This is likely gonna bite in other situations, adding compressed zram can absorbe some of those pressures and allow the system to continue normally. Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
8145911 to
e4d8b10
Compare
Its nice addition @brianmcgillion, it will be interesting to compare the results if we run some performance tests. And if we want to increase the swap size on the host, is there a specific test case we should target? |
We do, but at least our ballooning tests are now failing because there is too much memory available at the beginning of the test. We will have to adjust the tests. |
Seems that ballooning is not working at all. Total memory is at maximum on all vms and does not deflate. |
Tested on Lenovo Gen12 with zram enabled, Total memory doesn't deflate. Below data captured from
|
The vms, have limited memory in some cases and when performing tasks such as a resume, it can be seen that some drivers are failing to aquire enough memory to reinitialize. This is likely gonna bite in other situations, adding compressed zram can absorbe some of those pressures and allow the system to continue normally.
Description of Changes
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify: