Need to deal with non-openstack partitions "stealing memory"

Bug #1700974 reported by Andreas Scheuring
6
This bug affects 1 person
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/scheduler. As it might be the case, that pulling the cpc properties takes longer than the interval is... -> we need to figure that out!

[1] https://github.com/openstack/nova-dpm/blob/bb24705ceadc33b0e6ce1f66b27b0264d850e52b/nova_dpm/virt/dpm/host.py#L53
[2] https://github.com/openstack/nova-dpm/blob/bb24705ceadc33b0e6ce1f66b27b0264d850e52b/nova_dpm/virt/dpm/host.py#L57

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.