runc/libcontainer/cgroups
Qiang Huang aee46862ec Fix cpuset issue with cpuset.cpu_exclusive
This PR fix issue in this scenario:

```
in terminal 1:
~# cd /sys/fs/cgroup/cpuset
~# mkdir test
~# cd test
~# cat cpuset.cpus
0-3
~# echo 1 > cpuset.cpu_exclusive (make sure you don't have other cgroups under root)

in terminal 2:
~# echo $$ > /sys/fs/cgroup/cpuset/test/tasks
// set resources.cpu.cpus="0-2" in config.json
~# runc run test1

back to terminal 1:
~# cd test1
~# cat cpuset.cpus
0-2
~# echo 1 > cpuset.cpu_exclusive

in terminal 3:
~# echo $$ > /sys/fs/cgroup/test/tasks
// set resources.cpu.cpus="3" in config.json
~# runc run test2
container_linux.go:247: starting container process caused "process_linux.go:258:
applying cgroup configuration for process caused \"failed to write 0-3\\n to
cpuset.cpus: write /sys/fs/cgroup/cpuset/test2/cpuset.cpus: invalid argument\""
```

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2016-11-18 15:28:40 +08:00
..
fs Fix cpuset issue with cpuset.cpu_exclusive 2016-11-18 15:28:40 +08:00
systemd Ignore error when starting transient unit that already exists 2016-10-19 14:55:52 -04:00
cgroups.go Fix typo. 2016-09-09 16:18:54 +08:00
cgroups_test.go Rework ParseCgroupFile 2015-09-10 20:59:27 +03:00
cgroups_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
stats.go Fix trivial style errors reported by `go vet` and `golint` 2016-04-12 08:13:16 +00:00
utils.go Add flag to allow getting all mounts for cgroups subsystems 2016-09-15 15:19:27 -04:00
utils_test.go Add flag to allow getting all mounts for cgroups subsystems 2016-09-15 15:19:27 -04:00