Balloon
crosvm supports virtio-balloon for managing guest memory.
How to control the balloon size
When running a VM, specify VM_SOCKET with -s option. (example: /run/crosvm.sock)
Then, open another terminal and specify the balloon size in bytes with crosvm balloon command.
Note: The size of balloon is managed in 4096 bytes units. The specified value will be rounded down to a multiple of 4096 bytes.
You can confirm the balloon size with crosvm balloon_stats command.