How about add an option to keep hugepages on vm stop ?

MasterPhi

Well-Known Member
Jan 7, 2019
51
9
48
34
Hi,

Currently I'm using hugepages for better performance, they are allocated manually on boot.
However, when vm stop, hugepages are freed and the memory space could be used by other applications, sometimes there are not enough continus memory pages to allocate hugepage, and vm fail to start.

Maybe it's useful to add an option to keep hugepages on vm stop ?
 
Is this resolved by now? I landed here because my node fails allocating hugepages after I stopped a VM that uses those