You're right, I badly understood the use of Hugepage. Like you say, 4096 is enough to use 4GB in my VM but unfortunatly with this, i still have freeze, corruption in the VM ...
In resume : - 4096 Hugepages + 2GB VM = good - 4096 Hugepages + 4GB VM = bad 2016-06-21 19:58 GMT+02:00 Alex Williamson <alex.l.william...@gmail.com>: > On Tue, Jun 21, 2016 at 11:53 AM, Berillions <berilli...@gmail.com> wrote: > >> When i said in my message "real 8Gb Memory Ram", it means that I have 2 >> slots each one which contain 4Gb Memory Ram. >> "real 12Gb Memory Ram", it means that I have 3 slots each one which >> contain 4Gb Memory Ram. >> >> And yes, i created Hugepages for the VM with the Debian Wiki ( >> https://wiki.debian.org/Hugepages). >> For 2048Mb allocate to the VM, i set "vm.nr_hugepages" to 4096. >> >> But i can't set 8192 to "vm.nr_hugepages" and set 4096MB for the Guest, I >> have not enough memory for the Host (I can use the host but if i launch >> Virt-Manager + VM, 99% of Memory Ram is used so the host freeze) >> > > You do realize that the default hugepage size on x86 is 2MB, right? So > you cannot allocate 8192 hugepages because that would be 16GB on your 12GB > system. At 4096, you already have enough hugepages to run an 8GB VM. > Maybe you're seeing problems because you're making your poor system swap > like mad while at the same time not even using all the hugepages you're > allocating. >
_______________________________________________ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users