Bug 2275208 - Please enable CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
Summary: Please enable CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 40
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-16 00:49 UTC by Marek Marczykowski
Modified: 2024-04-23 02:05 UTC (History)
15 users (show)

Fixed In Version: kernel-6.8.7-300.fc40 kernel-6.8.7-200.fc39 kernel-6.8.7-100.fc38
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-19 21:36:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marek Marczykowski 2024-04-16 00:49:18 UTC
1. Please describe the problem:

CONFIG_XEN_BALLOON_MEMORY_HOTPLUG is useful to allow dynamically increasing (Xen) VM beyond what was set in the memory map initially ("maxmem" vm.cfg setting), without rebooting it.

Additionally, it allows faster VM startup when one is planning to give it more memory later:
 - with CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y: start VM with maxmem=memory (the initial "low" value) - no balloon driver is involved during boot; memory can be expanded later with `xl mem-max` and `xl mem-set`
 - without CONFIG_XEN_BALLOON_MEMORY_HOTPLUG: one need to start with sufficiently high maxmem (planning for future increases) and during the boot process the balloon driver gives back the difference to Xen - with init_on_free=1 (default nowadays) it also zeroes all those pages, which in some cases can add a few seconds to the VM start time (sometimes doubling it...).

CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y is also necessary to increase memory beyond ~10x what was allocated at boot (without CONFIG_XEN_BALLOON_MEMORY_HOTPLUG higher "maxmem" parameter is not enough, as Linux doesn't reserve enough space at boot to account for more memory).

2. What is the Version-Release number of the kernel:

6.8.5-301.fc40.x86_64 (same applies to fc39)


Reproducible: Always

Comment 1 Marek Marczykowski 2024-04-16 00:56:00 UTC
A bit more context - I found it when using Qubes OS, which does highly dynamic memory management: https://github.com/QubesOS/qubes-issues/issues/7956#issuecomment-1533884519. But based on my testing, it applies to plain Xen too. Furthermore, starting a HVM with "maxmem">"memory" (maximum allocation > initial allocation) utilizes populate-on-demand functionality which had security issues in the past, for example: https://xenbits.xen.org/xsa/advisory-388.html

Comment 2 Fedora Update System 2024-04-18 05:00:20 UTC
FEDORA-2024-1d25a668fe (kernel-6.8.7-200.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1d25a668fe

Comment 3 Fedora Update System 2024-04-18 05:00:22 UTC
FEDORA-2024-49fa41a18b (kernel-6.8.7-100.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-49fa41a18b

Comment 4 Fedora Update System 2024-04-18 05:04:39 UTC
FEDORA-2024-d4cd1cc75f (kernel-6.8.7-300.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d4cd1cc75f

Comment 5 Fedora Update System 2024-04-19 02:32:41 UTC
FEDORA-2024-1d25a668fe has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-1d25a668fe`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-1d25a668fe

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-04-19 02:41:46 UTC
FEDORA-2024-d4cd1cc75f has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-d4cd1cc75f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-d4cd1cc75f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-04-19 03:41:26 UTC
FEDORA-2024-49fa41a18b has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-49fa41a18b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-49fa41a18b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-04-19 21:36:37 UTC
FEDORA-2024-d4cd1cc75f (kernel-6.8.7-300.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-04-23 01:20:04 UTC
FEDORA-2024-1d25a668fe (kernel-6.8.7-200.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-04-23 02:05:00 UTC
FEDORA-2024-49fa41a18b (kernel-6.8.7-100.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.