runc/libcontainer/cgroups
Kir Kolyshkin 0ac92aab3f cgroups/fs2: make removeCgroupPath faster
1. In cases there are no sub-cgroups, a single rmdir should be faster
than iterating through the list of files.

2. Use unix.Rmdir() to save one more syscall since os.Remove() tries
unlink(2) first which fails on a directory, and only then tries
rmdir(2).

3. Re-use rmdir.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2020-05-28 11:15:31 -07:00
..
devices cgroups: add copyright header to devices.Emulator implementation 2020-05-15 11:29:51 +10:00
ebpf configs: use different types for .Devices and .Resources.Devices 2020-05-13 17:38:45 +10:00
fs cgroupv1: don't ignore MemorySwap if Memory==-1 2020-05-20 17:23:40 -07:00
fs2 cgroups/fs2: make removeCgroupPath faster 2020-05-28 11:15:31 -07:00
fscommon cgroups/fscommon: use errors.Is 2020-04-18 16:16:49 -07:00
systemd cgroupv1: minimal fix for cpu quota regression 2020-05-26 11:02:16 -07:00
cgroups.go cgroups: add GetFreezerState() helper to Manager 2020-05-13 17:38:45 +10:00
cgroups_test.go .travis.yml: add Fedora 31 vagrant box (for cgroup2) 2019-10-31 16:53:01 +09:00
cgroups_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
stats.go Add reading of information from cpuacct.usage_all 2020-05-05 08:51:12 +02:00
utils.go cgroupv2: set mem+swap to max if mem set to max 2020-05-22 21:32:16 -07:00
utils_test.go libct/cgroups: rm GetClosestMountpointAncestor 2020-05-13 17:32:06 -07:00