CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is enabled on fedora s390 kernel config. This leads to autoonlining of standby memory on zvm during boottime. Reproducible: Always Steps to Reproduce: 1. s390 zvm configuration: #cp define storage 12g standby 3g 2. boot the z/vm 3. Result: * lsmem RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x00000003bfffffff 15G online yes 0-59 Memory block size: 256M Total online memory: 15G Total offline memory: 0B 4. grep -R "CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE" config-6.2.9-300.fc38.s390x CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y Actual Results: * grep -R "CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE" config-6.2.9-300.fc38.s390x CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y * lsmem RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x00000003bfffffff 15G online yes 0-59 Memory block size: 256M Total online memory: 15G Total offline memory: 0B * Due to enablement of auto online feature, all the standby memory are converted to online during boottime. Expected Results: * lsmem RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x00000002FFFFFFFF 12G online yes 0-47 0x0000000300000000-0x00000003BFFFFFFF 3G offline 48-59 Memory block size: 256M Total online memory: 12G Total offline memory: 3G * Auto online feature should be disabled on s390x. * The CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE config is already disabled on upstream s390 kernel defconfig, as this is recommended. * Redhat fixes reference: https://bugzilla.redhat.com/show_bug.cgi?id=1370161 * Redhat has disabled the autoonline feature: grep -R "CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE" config-5.14.0*.el9.s390x # CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set
Yes, I think makes sense. Please feel free to open a MR for the ARK kernel project at https://gitlab.com/cki-project/kernel-ark/ to get it updated. The docs are at https://cki-project.gitlab.io/kernel-ark/ In RHEL there are udev rules for cpu and memory online-ing, but they are skipping s390x, see https://github.com/redhat-plumbers/systemd-rhel9/blob/main/rules.d/40-redhat.rules for details.
1.CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is disabled (s390) on os-build and fedora-39 build. Thank you. https://gitlab.com/cki-project/kernel-ark/-/commit/e7abb86e3f05bbdd1c180a09b7324baa9a290c28 https://koji.fedoraproject.org/koji/buildinfo?buildID=2283051 2. Tested on kernel 6.5.1-300.fc39 2a. cat config-6.5.1-300.fc39.s390x | grep CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE # CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set 2b. Also tested on boottime. Not autoonlined anymore. Memory block size: 256M Total online memory: 12G Total offline memory: 4G uname -a 6.5.1-300.fc39.s390x #1 SMP Sat Sep 2 15:45:29 UTC 2023 s390x GNU/Linux Thanks
FEDORA-2023-4c8291ba6a has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4c8291ba6a
FEDORA-2023-3100e4d61c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-3100e4d61c
FEDORA-2023-4c8291ba6a 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-2023-4c8291ba6a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4c8291ba6a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-3100e4d61c has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-3100e4d61c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-3100e4d61c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-3100e4d61c has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-4c8291ba6a has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.