Reducing 2M hugepages to 0 is allowed, but 'vm_hp_total_2M' value after unlock did not actually go to 0 (vm_hp_pending_2M remains in Pending 0 state)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tao Liu |
Bug Description
Brief Description
-----------------
Reducing 2M hugepages to 0 is allowed, but 'vm_hp_total_2M' value after unlock did not actually go to 0 (vm_hp_pending_2M remains in Pending 0 state)
[After reducing 2M hugepages to 0 on a single numa node system, the sysinv-agent does not send memory audit report after the host is unlocked and enabled. As a result, the CLI/horizon does not display the updated memory information.]
Severity
--------
Standard
Steps to Reproduce
------------------
*This appears to be a problem where there is a single processor.
1G Huge pages was already 0 prior to the configuration change
1. Lock the host and reduce all Huge pages to 0 so only 4K pages exist
(~or continue to reduce incrementally)
2. unlock the host.
Although this would not be practical configuration change in a real deployment scenario, the change is accepted but does not work
Expected Behavior
------------------
Expected vm_hp_total_2M to go to 0 instead of eg. 24177 in this case (also should not have stayed in Pending 0' long after the host unlock operation.
Actual Behavior
----------------
The 4K pages appear to increase on the controller node for example to 13287168, but the '2M hugepages' (ie. vm_hp_total_2M) did not go to 0 but stays in Pending 0 long after the host is unlocked.
"Total: 24177 Pending: 0 (and Available: 24177)"
$ system host-memory-list controller-0
| processor | mem_tot | mem_platfo | mem_ava | hugepages(hp)_ | vs_hp_ | vs_hp_ | vs_hp_ | vm_total_ | vm_hp_ | vm_hp_avai | vm_hp_pending_2M | vm_hp_total_1G | vm_hp_avail_1G | vm_hp_pending_1G | vm_hp_use_1G |
| | al(MiB) | rm(MiB) | il(MiB) | configured | size(M | total | avail | 4K | total_ | l_2M | | | | | |
| | | | | | iB) | | | | 2M | | | | | | |
| 0 | 52878 | 11000 | 51854 | True | 1024 | 1 | 0 | 13287168 | 24177 | 24177 | 0 | 0 | 0 | 0 | True |
Reproducibility
---------------
Reproducible
System Configuration
-------
2 node (single processor)
Branch/Pull Time/Commit
-------
Master as of date: 2018-06-11
Timestamp/Logs
--------------
see horizon.log (controller-1 is active controller, controller-0 was standby where the change was posted - 2M hugepages set to 0
2018-06-13 16:12:00,185 [INFO] horizon.
2018-06-13 16:12:26,639 [INFO] horizon.
2018-06-13 16:12:44,902 [INFO] openstack_
2018-06-13 16:12:44,904 [INFO] horizon.
Changed in starlingx: | |
assignee: | nobody → Tao Liu (tliu88) |
description: | updated |
tags: |
added: stx.2019.05 removed: stx.2019.03 |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Targeting stx.2019.03 as this is a very specific test scenario