paunch/paunch
Emilien Macchi 4f0b72a32b Add --cpuset-cpus support
Limit the specific CPUs or cores a container can use.

If cpuset-cpus is configured in the container layout, then the value
will be used when running the container cli with --cpuset-cpus.
If 'all' is used as a value, we'll then take all available cpus,
computed by: "0-" + str(psutil.cpu_count()-1)

If unset (default), the cpuset-cpus value is computed by using psutil with a
new function which returns a comma-separated list range of CPUs that a
container can use.

This parameter is particulary useful for NFV:
https://bugzilla.redhat.com/show_bug.cgi?id=1750781
Indeed, for NFV workloads, in order to achieve 0 packet loss, linux processes,
ovs-dpdk (if applicable) and VMs are isolated thanks to kernel args (isolcpus)
and tuned profiles (cpu-partitioning).

Change-Id: I9443ad60affe9c7823b17daa259efee542c6fe22
(cherry picked from commit d6ae074d25)
(cherry picked from commit ec6c50d198)
2019-09-16 21:35:47 +00:00
..
builder Add --cpuset-cpus support 2019-09-16 21:35:47 +00:00
tests Add --cpuset-cpus support 2019-09-16 21:35:47 +00:00
utils Add --cpuset-cpus support 2019-09-16 21:35:47 +00:00
__init__.py Revert "Check if volume paths exist before executing Docker." 2019-09-12 15:55:50 +00:00
cmd.py paunch apply should exit nonzero for failures 2017-08-01 18:16:41 -04:00
main.py Start to write docs 2017-04-06 15:15:59 +12:00
runner.py Optimize container CLI for getting unique names 2019-08-05 14:53:35 +02:00