problem with hotplug and 64GB ram

Still have issues
pve-manager/8.0.4/d258a813cfa6b390 (running kernel: 6.2.16-19-pve)

Testing vps config
Code:
agent: 1
boot: order=ide2
cores: 128
cpu: x86-64-v2-AES
hotplug: disk,network,usb,memory,cpu
ide2: none,media=cdrom
memory: 61440
meta: creation-qemu=8.0.2,ctime=1698709821
name: bla
numa: 1
ostype: l26
scsihw: virtio-scsi-single
smbios1: uuid=c655e14f-d994-411e-81ca-f7d55284060c
sockets: 1
vcpus: 4
vmgenid: 05e14755-9070-432e-8883-410032859a27
 
I assume that you also tested if it gets correctly applied (via cat /sys/module/vhost/parameters/max_mem_regions) and if values like 512 work...
 
Yes, i tried
Code:
echo "options vhost max_mem_regions=512" > /etc/modprobe.d/vhost.conf
rmmod vhost_net
rmmod vhost
modprobe vhost_net
cat /sys/module/vhost/parameters/max_mem_regions
# 512
 
Same issue on proxmox 7.4-17, but at least everything works if you're generous and add an extra GB.
 
TASK ERROR: memory size (81920) must be aligned to 2048 for hotplugging
pve-manager/8.1.3
 
Old thread but I have the same problem.

If I set ram as hotplug and size 122880: TASK ERROR: memory size (122880) must be aligned to 4096 for hotplugging
If I change to 123904: Kernel panic - not syncing: System is deadlocked on memory

If I remove ram from hotplug and set the size 122880: everything is ok.


# pveversion -v
proxmox-ve: 8.1.0 (running kernel: 6.2.16-18-pve)
pve-manager: 8.1.3 (running version: 8.1.3/b46aac3b42da5d15)
proxmox-kernel-helper: 8.1.0
pve-kernel-6.2: 8.0.5
proxmox-kernel-6.5: 6.5.3-1
proxmox-kernel-6.5.3-1-pve: 6.5.3-1
proxmox-kernel-6.2.16-20-pve: 6.2.16-20
proxmox-kernel-6.2: 6.2.16-20
proxmox-kernel-6.2.16-18-pve: 6.2.16-18
ceph-fuse: 17.2.6-pve1+3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx8
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.0.7
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.1.0
libpve-guest-common-perl: 5.0.6
libpve-http-server-perl: 5.0.5
libpve-rs-perl: 0.8.7
libpve-storage-perl: 8.0.5
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve4
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.1.2-1
proxmox-backup-file-restore: 3.1.2-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.2
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.1.3
pve-cluster: 8.0.5
pve-container: 5.0.8
pve-docs: 8.1.3
pve-edk2-firmware: 4.2023.08-2
pve-firewall: 5.0.3
pve-firmware: 3.9-1
pve-ha-manager: 4.0.3
pve-i18n: 3.1.5
pve-qemu-kvm: 8.1.2-6
pve-xtermjs: 5.3.0-3
qemu-server: 8.0.10
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.2-pve1
 
Old thread but I have the same problem.

If I set ram as hotplug and size 122880: TASK ERROR: memory size (122880) must be aligned to 4096 for hotplugging
If I change to 123904: Kernel panic - not syncing: System is deadlocked on memory

If I remove ram from hotplug and set the size 122880: everything is ok.
Hi,

Same situation, do we have workaround to achieve memory hotplug + 64 GB RAM VM. Already try +1 (65 GB) but still hit error
 
Last edited:
Getting almost the same error message on Proxmox 8.1.4:
Code:
memory size (65536) must be aligned to 2048 for hotplugging
 
Hello everyone!
Proxmox VE 8.2-4 error remains.
Disabling hotplug helps.
These settings
cat /etc/modprobe.d/modprobe.conf
options vhost max_mem_regions=512
help if you add another 1024 MB to the desired RAM value.

I have another question.
I need to increase the RAM to 1024 GB. Can I set the parameter to options vhost max_mem_regions=1512, for example?
Can there be any problems with the cluster or with VM performance because of this?
 
Hello everyone!
Proxmox VE 8.2-4 error remains.
Disabling hotplug helps.
These settings
cat /etc/modprobe.d/modprobe.conf
options vhost max_mem_regions=512
help if you add another 1024 MB to the desired RAM value.

I have another question.
I need to increase the RAM to 1024 GB. Can I set the parameter to options vhost max_mem_regions=1512, for example?
Can there be any problems with the cluster or with VM performance because of this?
512 regions is enough to reach 4TB emmory. (this is the number of memory slots inside qemu)
 
  • Like
Reactions: emptness

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!