]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/Memory.pm
Use nr_hugepages from /proc/cmdline
authorKamil Trzciński <ayufan@ayufan.eu>
Sun, 17 Feb 2019 12:39:37 +0000 (13:39 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 18 Feb 2019 09:39:18 +0000 (10:39 +0100)
commitca0ef6b1489e03f57fe110680d31d0616fe467e9
treea5fbb49fb6fa2d9af682bd39f06636bdb231b669
parentf5c673cba768bd8d67fb4f44dd9f8a15e1287ef0
Use nr_hugepages from /proc/cmdline

Currently Proxmox VE always deallocates HugePagesTLB
when starting a new machine and it makes it impossible
to preconfigure kernel /proc/cmdline with persistent allocation.

This change makes deallocation to prefer defaults set by /proc/cmdline,
by parsing the cmdline and respecting hugepages= and hugepagesz=.

Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
PVE/QemuServer/Memory.pm