Question about disallowing rename(2) in cgroup v2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: lizefan.x@xxxxxxxxxxxxx, Tejun Heo <tj@xxxxxxxxxx>, hannes@xxxxxxxxxxx
- Subject: Question about disallowing rename(2) in cgroup v2
- From: "taoyi.ty" <escape@xxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2022 21:09:48 +0800
- Cc: cgroups@xxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1
hi all,
I found that rename(2) can be used in cgroup v1 but is disallowed in
cgroup v2, what's the reason for this design?
rename(2) is critical when managing a cgroup pool in userspace, which
uses rename to reuse cgroup rather than mkdir to create a new one,this
can improve the performance of container concurrent startup, because
renaming cgroup is much more lightweight compared with creating cgroup.
For new features in cgroup v2, I switch to cgroup v2 and meet this
problem, I think renaming cgroup in v2 is similar to v1 and realizing it
is not a hard problem, so I send this mail to learn the initial design.
Thanks,
-escape
[Index of Archives]
[Linux ARM Kernel]
[Linux ARM]
[Linux Omap]
[Fedora ARM]
[IETF Annouce]
[Security]
[Bugtraq]
[Linux OMAP]
[Linux MIPS]
[eCos]
[Asterisk Internet PBX]
[Linux API]
[Monitors]