Jump to content
Welcome to our new Citrix community!
  • 0

Is it possible to pin VM memory so that host will never page out?

Motohiro Kanda




Is it possible to pin, page fix,  VM memory so that host will never page out any part of the memory used by an specific VM?

Kvm has "Locked" memory specification. https://libvirt.org/formatdomain.html#memory-backing 

Our customer runs kinda real-time application and cannot tolerate paging delays on VM and host.


It looks vm-memory-static-range-set does not help.


Thanks in advance.

Link to comment

1 answer to this question

Recommended Posts

  • 0

Far as I know, only CPUs can be pinned, not memory. You could under-allocate how many VMs run on a particular server and give thta VM plenty of memory to avoid paging.

It may also be possible to create a RAM drive or shmem but if the power fails. it will be lost.

Not sure if this might work, as I have never tried it, but see section here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/virtualization_tuning_and_optimization_guide/index



Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...