Lines Matching refs:nodes
21 fake_numa_containers = False # container mem via numa=fake mem nodes, else pages
142 # total mbytes of mem nodes available for new containers in parent
220 # all mem nodes now available to a container, both exclusive & shared
229 # Get set of numa memory nodes now used (exclusively or shared)
241 # Get subset of numa memory nodes of parent container which could
243 # This excludes nodes now allocated to existing children.
251 # Get set of numa memory nodes owned by current process's container.
259 # Get subset of numa memory nodes owned by current process's
261 # containers. This excludes any nodes now allocated
270 def nodes_avail_mbytes(nodes):
271 # nodes' combined user+avail size, in Mbytes
272 return sum(node_avail_kbytes(n) for n in nodes) // 1024
295 # (some nodes are bigger than this)
299 return float(numa[:-1]) # mbyte size of fake nodes
301 nodecnt = int(numa) # fake numa mem nodes for container isolation
303 nodecnt = len(utils.numa_nodes()) # phys mem-controller nodes
443 logging.debug('container %s has %d cpus and %d nodes totalling %s bytes',
451 nodes = utils.read_one_line(mems_path(parent))
452 utils.write_one_line(mems_path(name), nodesnodes
464 # Pick specific mem nodes for new cpuset's exclusive use
467 nodes = sorted(list(available_exclusive_mem_nodes(parent)))
470 while kbytes < needed_kbytes and nodecnt < len(nodes):
472 kbytes += node_avail_kbytes(nodes[-nodecnt])
485 mems = nodes[-nodecnt:]