From: "Anderson, Stuart B." <sba@caltech.edu>
To: "pve-user@lists.proxmox.com" <pve-user@lists.proxmox.com>
Subject: Re: [PVE-User] Hotplug Memory and default Linux kernel
Date: Tue, 29 Aug 2023 21:04:41 +0000 [thread overview]
Message-ID: <0C0F5E3A-6D17-4097-A068-C06ADBA40E90@caltech.edu> (raw)
In-Reply-To: <mailman.5.1693303201.12715.pve-user@lists.proxmox.com>
That looks so promising, but it is not working for PVE8+EL9 or PVE7+EL8. Perhaps there is an additional qemu setting that is needed?
[root@pcdev15 ~]# grep memhp /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-5.14.0-284.25.1.el9_2.x86_64 root=/dev/mapper/system-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M rd.lvm.lv=system/root selinux=0 memhp_default_state=online
#
# which did change the value of,
#
[root@pcdev15 ~]# cat /sys/devices/system/memory/auto_online_blocks
online
#
# but leaves lshw reporting a single 1GB bank of memory,
#
[root@pcdev15 ~]# lshw -class memory
*-firmware description: BIOS
vendor: SeaBIOS
physical id: 0
version: rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org
date: 04/01/2014
size: 96KiB
*-memory
description: System Memory
physical id: 1000
size: 32GiB
capabilities: ecc
configuration: errordetection=multi-bit-ecc
*-bank
description: DIMM RAM
vendor: QEMU
physical id: 0
slot: DIMM 0
size: 1GiB
#
# and the kernel running with small default parameters,
#
[root@pcdev15 ~]# grep processes /proc/$(pgrep systemd-logind)/limits
Max processes 2659 2659 processes
Note, the above is running with the suggested udev rule as well, but that appears to be for cpu rather than memory,
[root@pcdev15 ~]# cat /lib/udev/rules.d/80-hotplug-cpu.rules
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
Thanks.
> On Aug 29, 2023, at 3:00 AM, pve-user-request@lists.proxmox.com wrote:
>
> Hi,
>
> see
> https://pve.proxmox.com/wiki/Hotplug_(qemu_disk,nic,cpu,memory)#Memory_Hotplug
>
>
> 2 possiblity:
>
> add "memhp_default_state=online" to grub
>
> or
>
> add udev script
> /lib/udev/rules.d/80-hotplug-cpu.rules
>
> SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0",
> ATTR{online}="1"
>
>
>
> When hotplug is enabled, only 1GB of "static" memory is enabled (to
> boot the kernel,...).
> Then the other memory modules, are hotpluggable, and by default are
> offline.
--
Stuart Anderson
sba@caltech.edu
parent reply other threads:[~2023-08-29 21:04 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <mailman.5.1693303201.12715.pve-user@lists.proxmox.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0C0F5E3A-6D17-4097-A068-C06ADBA40E90@caltech.edu \
--to=sba@caltech.edu \
--cc=pve-user@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal