Reading cgroup v2 memory stats in Go
A tiny example of poking at the kernel's cgroup v2 interface from Go, and what the numbers actually mean.
hugo@portfolio ~> ./welcome
Platform engineer building OpenStack and cloud platforms in Go, with a soft spot for low-level Linux.
package main
// Profile
var (
name = "Hugo Sulaiman Setiawan"
role = "Platform Engineer"
location = "South Jakarta, Indonesia"
email = "hugosetiawan18@gmail.com"
github = "https://github.com/hugo-setiawan"
linkedin = "https://www.linkedin.com/in/hugo-setiawan"
)
// Focus — click to expand
Building and running OpenStack-based cloud platforms: Nova, Neutron, Cinder, Keystone and the operational glue around them.
Control planes, operators, CLIs and platform services written in Go. Boring, fast, debuggable.
The layer underneath: kernel interfaces, cgroups and namespaces, networking, systemd, eBPF, performance work.
A tiny example of poking at the kernel's cgroup v2 interface from Go, and what the numbers actually mean.
Why this site exists and what I plan to write about here.