diff options
Diffstat (limited to 'vicn/resource/linux/numa_mgr.py')
-rw-r--r-- | vicn/resource/linux/numa_mgr.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vicn/resource/linux/numa_mgr.py b/vicn/resource/linux/numa_mgr.py index 632264ce..90c526a8 100644 --- a/vicn/resource/linux/numa_mgr.py +++ b/vicn/resource/linux/numa_mgr.py @@ -56,7 +56,7 @@ def parse_lscpu_rv(rv): ret.append(parse_lscpu_line(line)) return ret -#------------------------------------------------------------------------------ +#------------------------------------------------------------------------------ class NumaManager(Resource): """ @@ -68,36 +68,36 @@ class NumaManager(Resource): multiplicity = Multiplicity.OneToOne, reverse_auto = True, reverse_name = 'numa_mgr') - numa_repartitor = Attribute(CycleType, + numa_repartitor = Attribute(CycleType, description = 'Tool to separate cores/CPUs/sockets', - multiplicity = Multiplicity.OneToMany, + multiplicity = Multiplicity.OneToMany, ro = True) - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- # Resource lifecycle - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- __create__ = None __delete__ = None - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- # Constructor and Accessors - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.current_numa_node = 0 - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- # Attributes - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- def _get_numa_repartitor(self): return BashTask(self.node, CMD_LSCPU, parse=parse_lscpu_rv) - #-------------------------------------------------------------------------- - # Public API - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- + # Public API + #-------------------------------------------------------------------------- def get_numa_core(self, numa_node=None): if numa_node is None: |