firecracker icon indicating copy to clipboard operation
firecracker copied to clipboard

[Feature Request] Memory hot-plug

Open luben opened this issue 3 years ago • 2 comments

Feature Request

We want to be able to add memory to an already booted VM. Tests with QEMU shows it's possible.Cursory look at cloud-hypervisor show it's supported by them also.

Describe the desired solution

An API call to running VM can add more memory to the system.

Additional context

We need VMs with different memory sizes and CPUs that can be used immediately. Currently we pool VMs with different sizes. We would prefer if we pool only one size of VMs and add the memory on-demand - when we know what size it needs.

There is already feature request for hot-plugging CPUs: https://github.com/firecracker-microvm/firecracker/issues/2609

Checks

  • [X] Have you searched the Firecracker Issues database for similar requests?
  • [X] Have you read all the existing relevant Firecracker documentation?
  • [X] Have you read and understood Firecracker's core tenets?

luben avatar Feb 04 '22 18:02 luben

Hi @luben ,

Beside memory hotplug, which is not implemented in Firecracker, an alternative for your use case might be memory ballooning. Please take a look here - https://github.com/firecracker-microvm/firecracker/blob/main/docs/ballooning.md

Thanks!

raduiliescu avatar Feb 05 '22 12:02 raduiliescu

Similar issue here: https://github.com/firecracker-microvm/firecracker/issues/2610

alindima avatar Feb 07 '22 08:02 alindima