[SOLVED] Memory hotplug and ballooning problem 919 MB max memory

svirus

Active Member
Jul 3, 2018
22
1
41
40
Hi,

I have a problem with ubuntu-cloud template in proxmox.
When I have enabled hotplug, enabled NUMA, ballooning enabled and Memory and Minimum memory set to same value (i.e. to 8192) always can't have more than 919MB on system.
When I try alloc more, then OOMKIller starting
qemu-guest-agent installed
# info balloon
balloon: actual=8192 max_mem=8192 total_mem=919 free_mem=16 last_update=1680854141

Proxmox 7.4-3
Ubuntu 22.04 LTS

I mieesed something?

When I disable Memeory hotplug then system can normal boot with 8192 MB memory.


Thanks in advaned
 
Yes, I added this:
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"


still have 919MB and when I try to alloc more then OOMKiller start
 
did you add the 'memhp_default_state=online' to the kernel commandline?
 
so does it work now or not?

maybe the wording is not optimal in the wiki page, if i have time, i can check it here
 
Yes, it working now.
On wiki is "For Linux kernel >=5.15 (e.g. Ubuntu 22.04) you only need the UDEV rule for cpu hotplug"
But I must also add memhp to boot command line... so in wiki is unclear information.
 
  • Like
Reactions: Colin 't Hart