I have qemu-guest-agent installed and enabled. Is there something else needed for memory ballooning to work correctly on Alpine? I'm seeing 96%+ RAM utilization with no effect.
info balloon
to check the current balloon size and use balloon <memory size in MB>
to temporarily change it. The automatic ballooning, when enabled, will probably shortly thereafter change the size again.# info balloon
balloon: actual=2048 max_mem=2048 total_mem=1993 free_mem=19 mem_swapped_in=80781312 mem_swapped_out=291606528 major_page_faults=11401 minor_page_faults=835070 last_update=1619061591
# balloon 3000000
# info balloon
balloon: actual=2048 max_mem=2048 total_mem=1993 free_mem=20 mem_swapped_in=81375232 mem_swapped_out=294211584 major_page_faults=11510 minor_page_faults=835522 last_update=1619061599
# balloon 1000000
# info balloon
balloon: actual=2048 max_mem=2048 total_mem=1993 free_mem=20 mem_swapped_in=91934720 mem_swapped_out=297951232 major_page_faults=12047 minor_page_faults=839498 last_update=1619061617
I'm sorry, it is in MB not KB as I mistakenly wrote before. TheThanks all. The Ballooning Device checkbox is ticked. I have a VM configured with 2GB of memory.
I don't see a change when I use the `balloon <memory in KB>` command.
max_mem=2048
corresponds with your specified 2GB of memory. Try a value below 2048 and the actual=
should change accordingly (within the limits of the configuration and memory usage of the VM).# info balloon
balloon: actual=1000 max_mem=2048 total_mem=945 free_mem=21 mem_swapped_in=483526197248 mem_swapped_out=278703652864 major_page_faults=100607626 minor_page_faults=149290108 last_update=1619145795
After theAh I see. I gave balloon 1000 a try and it hasn't increased so I'm not sure that it's working. The configuration is Memory: 2048, Minimum memory: 2048, Ballooning Device: Checked.
Code:# info balloon balloon: actual=1000 max_mem=2048 total_mem=945 free_mem=21 mem_swapped_in=483526197248 mem_swapped_out=278703652864 major_page_faults=100607626 minor_page_faults=149290108 last_update=1619145795
balloon 1000
the VM's memory was reduced to 1000MB (see actual
), so manual ballooning does actually work. 945MB was in use and 21MB was free inside the VM.We use essential cookies to make this site work, and optional cookies to enhance your experience.