Re: [RFC] support memory reserved feature and optimize mlock guest memory propose

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

 



Il 05/03/2014 09:01, Zhanghailiang ha scritto:
> Hi all:
> 
> Currently, we use cgroup(memory) to support memory QoS on KVM platform,
> and use "mlock" on qemu to support "memory reserved".
> 
> The "mlock" seems to be not appropriate.
> 
> Now qemu "mlock" memory in the main thread, which would lock iothread
> (qemu_mutex_lock_iothread), if the memory size is large, that will
> consume lots of time.
> 
> It means whenever we want to set a new 'mlock', the VM would be blocked
> for a while.

I'm not sure I understand how the mlock-ed memory is used.  Are you
using a custom malloc, for example with g_mem_set_vtable?

Paolo

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]