第62回 Linuxカーネルのコンテナ機能 - cgroup v2から使うメモリコントローラ(7)
https://gihyo.jp/article/2026/05/linux_containers-0062?utm_source=feed

#gihyo #技術評論社 #gihyo_jp #Linux #LXC #cgroup

第62回 Linuxカーネルのコンテナ機能 - cgroup v2から使うメモリコントローラ(7) | gihyo.jp

第56回から続けてcgroup v2から使うメモリコントローラの機能を紹介してきました。今回も引き続き、まだ紹介していない機能を紹介していきます。

gihyo.jp

第61回 Linuxカーネルのコンテナ機能 - cgroup v2から使うメモリコントローラ(6)
https://gihyo.jp/article/2026/03/linux_containers-0061?utm_source=feed

#gihyo #技術評論社 #gihyo_jp #Linux #LXC #cgroup

第61回 Linuxカーネルのコンテナ機能 - cgroup v2から使うメモリコントローラ(6) | gihyo.jp

今回は、メモリコントローラ関係のイベントを監視する際に使えるファイルについて説明します。

gihyo.jp

第60回 Linuxカーネルのコンテナ機能 ―cgroup v2から使うメモリコントローラ(5)
https://gihyo.jp/article/2026/01/linux_containers-0060?utm_source=feed

#gihyo #技術評論社 #gihyo_jp #Linux #LXC #cgroup

第60回 Linuxカーネルのコンテナ機能 ―cgroup v2から使うメモリコントローラ(5) | gihyo.jp

最近は、Linuxカーネルに実装されるコンテナ関連の機能が高度になり、機能を調べて理解するのが難しくなってきました。

gihyo.jp

tc-ematch(8) extended matches for use with "basic", "cgroup" or "flow" filters

https://man7.org/linux/man-pages/man8/tc-ematch.8.html

#HackerNews #tc-ematch #extended #matches #basic #cgroup #flow #filters #Linux

tc-ematch(8) - Linux manual page

第59回 Linuxカーネルのコンテナ機能 ―cgroup v2から使うメモリコントローラ(4)
https://gihyo.jp/article/2025/12/linux_containers-0059?utm_source=feed

#gihyo #技術評論社 #gihyo_jp #Linux #LXC #cgroup

第59回 Linuxカーネルのコンテナ機能 ―cgroup v2から使うメモリコントローラ(4) | gihyo.jp

第58回では、メモリコントローラでメモリに対する制限や保護を設定した場合、階層構造が考慮される動作を見ました。その中で、ツリー構造を考慮したメモリ保護の動作に違和感を持った方は多いのではないでしょうか。

gihyo.jp

#TIL #cgroups' memory.current metric includes any #pagecache entries that a process in the #cgroup caused to be inserted, even if other processes are accessing it too.

This means that anything related to #systemd unit's memory accounting also inherits this property.

If your #emacs systemd unit reports insane memory usage (usually ~10G for me), this is why.
It's actually not emacs' fault for once ;)

#linux #kernel #MemoryAccounting

第58回 Linuxカーネルのコンテナ機能 ―cgroup v2から使うメモリコントローラ(3)
https://gihyo.jp/article/2025/08/linux_containers-0058?utm_source=feed

#gihyo #技術評論社 #gihyo_jp #Linux #LXC #cgroup

第58回 Linuxカーネルのコンテナ機能 ―cgroup v2から使うメモリコントローラ(3) | gihyo.jp

前回はメモリ保護の動きを確認しました。今回は、ここまで紹介したメモリ制限やメモリ保護において、階層構造が考慮されることを、実際に試しながら確認します。

gihyo.jp

#linux
#support
#help
#question
#systemd
#cgroup
#root
#uid

When su - error "Failed to connect to bus no medium found"

Investigated causes based on https://njroute22.com/failed-to-connect-to-bus-no-medium-found

Image1: $ systemctl status dbus. "CGroup" led me to systemd control groups.

Image2: $ systemd-cgls. From entry user-1234.slice ONLY configurations for originally created host user (i.e., ID 1234 user in sudoers), BUT NO ENTRY for root (i.e., user-0)

Q: Can root be made a member of systemd control group like user-1234 is?

"#Linux #cgroup, from first principles"

« On va apprendre à limiter la mémoire, le CPU, et l'envie de hurler devant #systemd. Bref, c’est moche, c’est bas niveau, c’est Linux. Et c’est fascinant. » #RudeOps

https://fzakaria.com/2025/05/26/linux-cgroup-from-first-principles

Linux cgroup from first principles

After having spent the better part of 2 weeks learning Linux’s cgroup (control group) concept, I thought I better write this down for the next brave soul. 🦸

Farid Zakaria’s Blog