Need to deal with non-openstack partitions "stealing memory"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-dpm |
New
|
Undecided
|
Unassigned |
Bug Description
Consider the following scenario
- Our CPC has 15GB Memory
- We configured nova-dpm with max_memory=10GB
- All the nova-dpm partitions consume 6 GB in total
- There's another partition that consumes 8 GB memory
Nova dpm reports the follwowing to the nova conductor and scheduler:
memory_mb = 10GB [1]
memory_used = 6GB [2]
nova scheduler then calculates that there is 10GB - 6GB = 4GB memory still free for use
But in fact there's only
15GB - 6GB - 8GB = 1 GB left on the system.
This should get fixed! In this case only 1GB should be reported as free memory.
Note: To achieve this, we need to query the cpcs free memory on every call. This might take a few seconds. We should also investigate in which interval the agent sends the reports to the conductor/
[1] https:/
[2] https:/