Cgroups and NS
May 30, 2019 — 21:18

Author: silver  Category: linux  Comments: Off

Linux Control Groups and Namespaces

Used for limiting and isolation

Docs

Utils

  • lsns
  • nsenter
  • cgroup-tools pkg (cgget, cgset, …)

Network

  • ip netns list
  • ip netns identify <pid>
  • ip netns exec <netns> ip
  • or: ip -n|-netns

Processes

  • ps axwww -o cgroup
  • ps axwww -o cgroup,user,pid,%cpu,%mem,vsz,rss,tname,stat,start,time,comm
  • ps axwww -o ipcns,mntns,netns,pidns,userns,utsns,pid,comm

Filesystem

  • /proc/<pid>/ns
  • /sys/fs/cgroup

Systemd








We use Matomo free and open source web analytics
We also use Jetpack WordPress.com Stats which honors DNT