Lines Matching full:container

4 # A basic cpuset/cgroup container manager for limiting memory use during tests
5 # for use on kernels not running some site-specific container manager
21 fake_numa_containers = False # container mem via numa=fake mem nodes, else pages
24 root_container_bytes = 0 # squishy limit on effective size of root container
127 logging.debug('moving task %s into container "%s"', task, name)
138 logging.debug('running self (pid %s) in container "%s"', me, name)
145 # don't have exact model for how container mgr measures mem space
152 # Get memory bytes available to parent container which could
213 # Get current process's inherited or self-built container name
214 # within /dev/cpuset or /dev/cgroup. Is '' for root container.
220 # all mem nodes now available to a container, both exclusive & shared
230 # by existing children of parent container
241 # Get subset of numa memory nodes of parent container which could
251 # Get set of numa memory nodes owned by current process's container.
260 # container, which could be allocated exclusively to new child
301 nodecnt = int(numa) # fake numa mem nodes for container isolation
324 tasks = [] # container doesn't exist anymore
335 # Destroy a container, and any nested sub-containers
343 logging.debug("releasing container %s", nest)
345 # Transfer any survivor tasks (e.g. self) to parent container
349 # remove the now-empty outermost container of this nest
355 # Destroy a container
362 logging.debug('now running self (pid %d) in container "%s"',
382 # set the propio controls for one container, for selected disks
384 # without using containerd or container.py
395 # 1: limited, container's use of disk time is capped to given DTF
443 logging.debug('container %s has %d cpus and %d nodes totalling %s bytes',
449 # create container via direct memcg cgroup writes
455 logging.debug('Created container %s directly via memcg,'
477 "New container's %d Mbytes exceeds "
478 "parent container's %d Mbyte size"
483 "%d Mbytes needed by new container"
503 Create a cpuset container and move job's current pid into it
504 Allocate the list "cpus" of cpus to that container
511 '': unnested top-level container
513 move_in = True: Move current process into the new container now.
518 raise error.AutotestError('Parent container "%s" does not exist'
521 # default to biggest container we can make under root
526 raise error.AutotestError('Creating container with no cpus')
529 raise error.AutotestError('Container %s already exists' % name)