Re: Memory fragmentation and kvm_alloc_stage2_pgd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Aug 10, 2014, at 10:24 PM, Richard W.M. Jones wrote:
> kvm_alloc_stage2_pgd has to do an order 9 allocation, ie. 512
> contiguous pages I think.
> 
> This often leads to problems running qemu when memory is relatively
> low -- eg. if you have one VM running, a healthy number of host
> applications, and perhaps "just" 4GB free; then you decide to run the
> libguestfs test suite.
> 
> Any suggestions how to deal with this?

Hi Richard,

As you know, 512 contiguous page allocation comes from KVM_PHYS_SHIFT,
which is always 48 regardless of hardware capability.

Currently, Cortex-A53 and Cortex-A57 supports up to 40-bit and 44-bit
address space, respectively. If KVM_PHYS_SHIFT is bound to hardware,
not theoretical number, 48, it is possible to allocate much less contiguous
pages. However, if a new Cortex-A, which support 48-bit address space, comes
up, the same problem would happen.

Best Regards
Jungseok Lee
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm




[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux