Bug 2375049
| Summary: | Additional memory assigned by Hyper-V dynamic memory not visible by system after initial allocation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Luca Cavana <luca.cavana> | ||||
| Component: | kernel | Assignee: | Vitaly Kuznetsov <vkuznets> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 42 | CC: | acaringi, adscvr, airlied, hdegoede, hpa, jforbes, josef, kernel-maint, linville, masami256, mchehab, mmuzila, ptalbert, steved, suraj.ghimire7, vkuznets | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | kernel-6.15.4-200.fc42 kernel-6.15.4-100.fc41 | Doc Type: | --- | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2025-06-30 02:21:59 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Luca Cavana
2025-06-26 20:19:50 UTC
The problem is that we lost CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y as upstream it was replaced with CONFIG_MHP_DEFAULT_ONLINE_TYPE_* setting.
A quick workaround is to add a udev rule for memory onlining:
SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
Created attachment 2095404 [details]
Ansible playbook to create systemd-udevd rules
The workaround proposed by Vitaly works, I've put together a simple Ansible playbook that takes care of applying the workaround at scale for Fedora 42 hosts while there is a more permanent fix in the code.
FEDORA-2025-7feed8b25a (kernel-6.15.4-200.fc42 and linux-firmware-20250627-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-7feed8b25a FEDORA-2025-f6f8526a43 (kernel-6.15.4-100.fc41 and linux-firmware-20250627-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2025-f6f8526a43 (In reply to Vitaly Kuznetsov from comment #1) > The problem is that we lost CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y as > upstream it was replaced with CONFIG_MHP_DEFAULT_ONLINE_TYPE_* setting. I fixed stable Fedora with your MR + a couple of fixes. See https://gitlab.com/cki-project/kernel-ark/-/commit/1d496a80392fa333f57e39b95cde0f19864034c1 We do still need your MR for kernel-ark os-build though so that rawhide can get the fix. As it changes configs in common, it will require RHEL acks. FEDORA-2025-7feed8b25a has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7feed8b25a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-7feed8b25a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2025-f6f8526a43 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f6f8526a43` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f6f8526a43 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. (In reply to Fedora Update System from comment #6) > FEDORA-2025-7feed8b25a has been pushed to the Fedora 42 testing repository. > Soon you'll be able to install the update with the following command: > `sudo dnf upgrade --enablerepo=updates-testing --refresh > --advisory=FEDORA-2025-7feed8b25a` > You can provide feedback for this update here: > https://bodhi.fedoraproject.org/updates/FEDORA-2025-7feed8b25a > > See also https://fedoraproject.org/wiki/QA:Updates_Testing for more > information on how to test updates. I tried the fix on a few test systems, after undoing the systemd-udevd rules, and the dynamic memory feature has restarted working correctly. It is allocating and removing memory as expected. Thank you very much for the quick answer and fix. FEDORA-2025-7feed8b25a (kernel-6.15.4-200.fc42 and linux-firmware-20250627-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2025-f6f8526a43 (kernel-6.15.4-100.fc41 and linux-firmware-20250627-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. |