XenServer VM start failed due to lack of memory

Bug #962311 reported by John Garbutt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Medium
Unassigned

Bug Description

It looks like XenServer is not quite reporting the correct memory usage.

On a test machine I had XenCenter reporting:

16374MB total
12224MB used
4151MB available

But the nova db read:
16374MB total
12200MB used
4174MB available

Although this was only out a small amount, I had errors where the scheduler decided to launch an instance on that server, but that spawn failed because there was not enough memory. Possibly because XenServer decided their was not enough memory despite the figures showing that there is enough memory.

In this particular case the scheduler thought a 4GB instance could be launched, but when it attempted it, it failed.

Tags: xenserver
description: updated
Tom Fifield (fifieldt)
tags: added: xen
Mark McLoughlin (markmc)
tags: added: xenserver
removed: xen
Revision history for this message
Mark McLoughlin (markmc) wrote :

Doesn't look like much has changed in xenapi's update_status() since John filed the bug, so marking as Confirmed

Changed in nova:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Mark McLoughlin (markmc) wrote :

Would be good to understand whether this is an issue with the stats reported by Xenserver, or a Nova issue

Revision history for this message
Mark McLoughlin (markmc) wrote :

Also, don't forget to take into account the ram_allocation_ratio config option - the default is 1.5, if you hadn't changed this the scheduler would have been happy to schedule a 4gb instance if there was only 3gb available

Marking as Incomplete, could do with some more details here

Changed in nova:
status: Confirmed → Incomplete
Revision history for this message
John Garbutt (johngarbutt) wrote :

Ah, OK.

Didn't know about that scheduler option.
XenServer doesn't do memory over-commit by default, and doesn't do page sharing.

I will mark it as invalid.

Changed in nova:
status: Incomplete → Invalid
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.