Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aahung/3266e0daabde64f872f0 to your computer and use it in GitHub Desktop.
Save aahung/3266e0daabde64f872f0 to your computer and use it in GitHub Desktop.
Difference Between Memory Ballooning and Memory Swapping

Difference Between Memory Ballooning and Memory Swapping

When memory scares

  • Memory ballooning will ask the virtual machine to select it's idle memory pages to be swapped.
  • Memory swapping will brutally picks pages at random from the virtual machine.

So memory swapping often occurs when memory ballooning cannot effective free the memory, it will impacts the performance more.

Reference

Memory reclamation, when and how? by FRANK DENNEMAN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment