runc/libcontainer/cgroups/fs
Qiang Huang fe898e7862 Fix kmem accouting when use with cgroupsPath
Fixes: #1347
Fixes: #1083

The root cause of #1083 is because we're joining an
existed cgroup whose kmem accouting is not initialized,
and it has child cgroup or tasks in it.

Fix it by checking if the cgroup is first time created,
and we should enable kmem accouting if the cgroup is
craeted by libcontainer with or without kmem limit
configed. Otherwise we'll get issue like #1347

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2017-02-25 10:58:18 -08:00
..
apply_raw.go Fix leftover cgroup directory issue 2016-11-22 08:02:43 +08:00
apply_raw_test.go libcontainer: cgroups: fs: add cgroup path safety unit tests 2016-02-14 00:37:21 +11:00
blkio.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
blkio_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
cpu.go cgroup: using WriteCgroupProc to write the specified pid into the cgroup's cgroup.procs file 2016-09-21 10:57:03 +00:00
cpu_test.go Add unit test for setting the CPU RT sched cgroups values at apply time 2016-07-04 13:11:53 +01:00
cpuacct.go Rename parent and data 2015-11-05 19:12:53 +08:00
cpuset.go Fix cpuset issue with cpuset.cpu_exclusive 2016-11-18 15:28:40 +08:00
cpuset_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
devices.go Skip updates on parent Devices cgroup 2016-07-25 10:30:46 -07:00
devices_test.go Add test 2016-07-28 17:14:51 -07:00
freezer.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
freezer_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
fs_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
hugetlb.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
hugetlb_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
memory.go Fix kmem accouting when use with cgroupsPath 2017-02-25 10:58:18 -08:00
memory_test.go Reset Swap when memory is set to unlimited (-1) 2017-02-15 08:11:57 +01:00
name.go Move the process outside of the systemd cgroup 2016-02-19 11:26:46 -08:00
net_cls.go fix setting net_cls classid 2016-07-11 05:00:35 +08:00
net_cls_test.go fix setting net_cls classid 2016-07-11 05:00:35 +08:00
net_prio.go libcontainer: cgroups: don't Set in Apply 2016-01-12 10:06:35 +11:00
net_prio_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
perf_event.go Rename parent and data 2015-11-05 19:12:53 +08:00
pids.go libcontainer: cgroups: deal with unlimited case for pids.max 2016-03-18 08:46:24 +11:00
pids_test.go libcontainer: cgroups: add tests for pids.max == "max" 2016-03-18 08:46:24 +11:00
stats_util_test.go Add limit value to memory stats 2016-02-03 11:54:09 -08:00
util_test.go Move the cgroups setting into a Resources struct 2015-12-16 15:53:31 -05:00
utils.go Removing unused variable for cgroup subsystem 2016-06-12 12:35:49 +05:30
utils_test.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00