Skip to content
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

Are there any plans to support Memory Ballooning ? #21

Open
ihexon opened this issue Dec 13, 2024 · 1 comment
Open

Are there any plans to support Memory Ballooning ? #21

ihexon opened this issue Dec 13, 2024 · 1 comment

Comments

@ihexon
Copy link

ihexon commented Dec 13, 2024

As time goes by, the memory allocated to the virtual machine will not be returned to the host. It would be better if the user could manually release this memory

@slp
Copy link
Collaborator

slp commented Dec 16, 2024

libkrun does implement virtio-balloon's free page reporting but, according to various reports from people developing memory allocators, macOS's behavior with MADV_DONTNEED is quite particular, and while it does mark the pages are reclaimable it doesn't really release them until they're really needed (that is, there's memory pressure on the system).

I've also tried with MADV_FREE_REUSABLE and it behaved in exactly the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants