cloudmin OpenVZ memory allocation bug

It looks like that Cloudmin always assign the same value for vmguarpages and oomguarpages (roughly 100MB). I checked this for a 1GB and 2GB container.

This is probably a bug, right?

Status: 
Closed (fixed)

Comments

Yes .. in the case where a memory limit is set, vmguarpages should be set the same as privvmpages to be consistent with what I wrote in your other ticket about memory over-allocation.

I will fix this in the next Cloudmin release.

Cloudmin 5.6: The barrier is still 100MB even though the memory limit is unlimited.

I also want to point that this is probably a critical issue to only assign 100MB of guaranteed memory to a container with 4GB memory limit.

So in Cloudmin 5.6, new VMs will get their guaranteed memory set to the same as the maximum memory.

In 5.7, you will be able to adjust the guaranteed memory separately..

I tested new VMs, checked user bean counters and still saw the 100MB barrier.

Is vmguarpages set in the container's OpenVZ config file?

Yes, it is set, but only to roughly 120MB (33792 pages)

Did you set the regular memory limit to "unlimited" initially? Cloudmin 5.6 just sets to guaranteed limit to 128M in this case ... only if you set an actual memory limit will the guaranteed memory be set to the same thing.

Yes, I did. But shouldn't the guaranteed memory be higher for unlimited as well? 128M seems kind of very low? Or is this something you are going to fix with In 5.7, you will be able to adjust the guaranteed memory separately..

Yes, the proper fix will be in cloudmin 5.7 - the 128mb setting is just a quick hack to avoid leaving the guaranteed memory unset.

Understand, will wait for 5.7 and then test with Centos 6.0 extensively :-)

Automatically closed -- issue fixed for 2 weeks with no activity.