cgroup
Linux kernel の cgroup 関係の話題です.
cgroup 一般
自分用メモ
- 単一階層構造 (メモ)
リンク
- cgroups: Resource controller for open files. (2014-07-02 lwn.net)
Control groups on lwn.net
cpuset
- [PATCH v3 00/12] cpuset: separate configured masks and effective masks (lwn.net 2014-07-09)
Memory Controller
- Linux 3.8 で改良された memory cgroup (2) (2013/03/22)
- Linux 3.8 で改良された memory cgroup (1) (2013/02/22)
- Linux 3.3 の新機能 Per-cgroup TCP buffer limits (3) (2012/05/23)
- Linux 3.3 の新機能 Per-cgroup TCP buffer limits (2) (2012/04/17)
- Linux 3.3 の新機能 Per-cgroup TCP buffer limits (2012/04/06)
自分用メモ
内容の信頼性がイマイチだったり,調査中だったりするメモ
- resource_counter.txt翻訳 … Documentation/cgroups/resource_counter.txt の適当な翻訳です (自分用)
- memory.txt翻訳 (未完)
リンク
- [lxc-devel] cgroup management daemon (2013-11-25)
- cgroup を管理するデーモンの提案
-
- memcg: make memcg's life cycle the same as cgroup (2013-06-14) v4
- kmemcg shrinkers (2013-05-30) v8
- kmemcg shrinkers (2013-07-07) v10
- memcg: Low-limit reclaim (2014-04-28)
- kmemcg shrinkers (lwn.net 2014-02-05)
- kmemcg slab reparenting (lwn.net 2014-05-13)
- mm: memcontrol: naturalize charge lifetime v2 (lwn.net 2014-05-29)
- mm: memcontrol: naturalize charge lifetime v3 (lwn.net 2014-06-16)
- memcg/slab: reintroduce dead cache self-destruction (lwn.net 2014-05-30)
- memcg/slab: reintroduce dead cache self-destruction (lwn.net 2014-06-13)
- mm: memcontrol: populate unified hierarchy interface v2 (lwn.net 2014-08-08)
- Per-memcg slab shrinkers (lwn.net 2014-07-28)
- Per memcg slab shrinkers (lwn.net 2014-10-24)
- Per memcg slab shrinkers (lwn.net 2015-01-08) v3
- memcg: add per cgroup dirty page accounting (lwn.net 2015-03-08)
- memcg/kmem: switch to white list policy (lwn.net 2015-11-10)
Network Priority Cgroup
- Linux 3.3 の新機能 Network priority cgroup (2) (2012/06/15)
- Linux 3.3 の新機能 Network priority cgroup (2012/03/21)
CFS bandwidth control
CPU のスケジューラ関係.
- Linux 3.2 の CFS bandwidth control (2) (2012/01/16)
- Linux 3.2 の CFS bandwidth control (1) (2012/01/16)
blkio control
- blk-cgroup: Allow creation of hierarchical cgroups (blkio コントローラで階層構造を持ったグループが作製可能になった時のパッチ.ただし,見かけ上階層構造が可能になっただけで,階層構造のグループもフラットに扱われる)
- writeback: cgroup writeback support (2014-01-06) blkio で writeback サポートの RFC
-
cgmanager
Ubuntu / lxc 側の cgroup 管理ツール
- cgroup cleanup (2014-03-07)
- Introducing cgmanager (S3hh's Blog) → cgmanagerの紹介
PIDs subsystem
気になるもののメモ
- A milestone for control groups (lwn.net 2017-07-31)
- [PATCH v2 00/39] fs: idmapped mounts (lkml 2020-11-15)
- Latest Slab Cgroup Memory Controller Patches Saving ~1GB RAM Per Host On Facebook Servers (phoronix 2020-06-19)
- (5.9でマージ) https://kernelnewbies.org/Linux_5.9
-
気になるモノのメモ(古い)
- sane_behaviorオプション (提案のメールを雑に訳した.まだ提案レベルの未実装の機能.)
- (関連) cpuset: implement sane hierarchy behaviors (2013-06-09 の v3)
- http://lwn.net/Articles/484251/ (↑ sane_behavior とも関係ある)
- cgroups: Task counter subsystem v7 → ボツ (limit kmem で代用できるだろ)
- 最近になって「それじゃダメじゃない」という感じの議論が出ていた
-
- http://lwn.net/Articles/548897/ の Section.11 に解説あり (3.10 kernel 付属文書)
- [lxc-devel] the solution of top and free in the lxc (lxc-devel ML) (2013-05-28)
- コンテナ内での top や free を実行したときのリソース表示について.Serge Hallyn 氏がどうするのかの現時点でのカーネルコミュニティでのアイデアを書いている.
- Changes coming for systemd and control groups (2013-06-21)
- cgroup の複数階層構造はなくなり,単一のツリーとなる予定.
- Re: [Lxc-users] How much LXC is secure? (2013-11-12)
- “A couple of months or years(?) ago there was a patch that was submitted to the upstream, which made it possible to limit number of processes in containers (against forkbombs). Is there any news about it?” に対して “Currently there is the kernel memory cgroup control, but I think we need more fine-grained controls, including nrtasks and nrmounts.”
- event_fd の仕組みは今後 inotify に置き換わる?
- ソースを探すべし
- cgroup: update task migration path (lwn.net 2014-02-13)
-
- 結局どうなったん?
- SO_PEERCGROUP: which container is calling? (lwn.net 2014-03-18)
- UNIX domain socket 経由でプロセスがどの cgroup に属しているかを取得するとか
- net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options (lwn.net 2014-04-16) パッチ
- cgroup: implement cgroup.populated, v2 (2014-04-14)
- cgroup: implement unified hierarchy, v2 (2014-04-14)
- add nproc cgroup subsystem (2015-02-23)
- cgroups: add pids subsystem (2015-06-09) ↑の nproc subsystem が改名したみたい v14
- Thread-level management in control groups (lwn.net 2015-09-01)
- netfilter, cgroup: implement cgroup2 path match in xt_cgroup (lwn.net 2015-12-07)