nova-compute does not respect reserved memory for dom0 when using libvirt/XEN
Bug #1187330 reported by
Thomas Kaergel
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
When using libvirt/XEN nova-compute does not respect the reserved memory for dom0. Dom0 is skipped in memory calculation in nova/virt/
affects: | ceilometer → nova |
Changed in nova: | |
assignee: | nobody → Thomas Kaergel (thomas-kaergel) |
tags: | added: libvirt |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit |
Changed in nova: | |
assignee: | Thomas Kaergel (thomas-kaergel) → nobody |
Changed in nova: | |
assignee: | nobody → Rohan (kanaderohan) |
Changed in nova: | |
assignee: | Rohan (kanaderohan) → nobody |
tags: | added: xen |
Changed in nova: | |
assignee: | Sumanth Nagadavalli (sumanth-nagadavalli) → nobody |
Changed in nova: | |
status: | Triaged → Confirmed |
Changed in nova: | |
assignee: | nobody → Sreeram Vancheeswaran (sreeram-vancheeswaran) |
Changed in nova: | |
assignee: | Sreeram Vancheeswaran (sreeram-vancheeswaran) → nobody |
To post a comment you must log in.
Right now, the method, get_memory_mb_used in nova/virt/ libvirt/ driver. py does the following things for dom0, proc/meminfo' ).read( ).split( )
m = open('/
idx1 = m.index('MemFree:')
idx2 = m.index('Buffers:')
idx3 = m.index('Cached:')
used += (dom_mem -
(int(m[ idx1 + 1]) +
int(m[ idx2 + 1]) +
int(m[ idx3 + 1])))
Looks like, it is assuming that the ballooning is enabled by default.
Is the expectation to hide it behind a config?