The nova.objects.numa Module

class NUMACell(context=None, **kwargs)

Bases: nova.objects.base.NovaObject

VERSION = '1.2'
avail_cpus
avail_memory
can_fit_hugepages(pagesize, memory)

Returns whether memory can fit into hugepages size

Parameters:
  • pagesize – a page size in KibB
  • memory – a memory size asked to fit in KiB
Returns:

whether memory can fit in hugepages

Raises:

MemoryPageSizeNotSupported if page size not supported

cpu_usage
cpuset
fields = {'memory': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'siblings': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'mempages': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'memory_usage': Integer(default=0,nullable=False), 'cpu_usage': Integer(default=0,nullable=False), 'pinned_cpus': Set(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cpuset': Set(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
free_cpus
free_siblings
id
memory
memory_usage
mempages
pin_cpus(cpus)
pin_cpus_with_siblings(cpus)
pinned_cpus
siblings
unpin_cpus(cpus)
unpin_cpus_with_siblings(cpus)
class NUMAPagesTopology(context=None, **kwargs)

Bases: nova.objects.base.NovaObject

VERSION = '1.0'
fields = {'used': Integer(default=0,nullable=False), 'total': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'size_kb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
free

Returns the number of avail pages.

free_kb

Returns the avail memory size in KiB.

size_kb
total
used
class NUMATopology(context=None, **kwargs)

Bases: nova.objects.base.NovaObject, nova.objects.base.NovaObjectDictCompat

VERSION = '1.2'
cells
fields = {'cells': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod obj_from_db_obj(db_obj)
classmethod obj_from_primitive(primitive, context=None)
class NUMATopologyLimits(context=None, **kwargs)

Bases: nova.objects.base.NovaObject

VERSION = '1.0'
cpu_allocation_ratio
fields = {'ram_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cpu_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod obj_from_db_obj(db_obj)
ram_allocation_ratio
to_dict_legacy(host_topology)
all_things_equal(obj_a, obj_b)

Previous topic

The nova.objects.notification Module

Next topic

The nova.objects.pci_device Module

Project Source

This Page