Posted in

Go程序在cgroup v2环境下被重命名后,/sys/fs/cgroup/pids.max限制失效?—— 因kernel cgroup subsystem依赖task_struct.comm而非argv[0]!

第一章:Go程序在cgroup … Go程序在cgroup v2环境下被重命名后,/sys/fs/cgroup/pids.max限制失效?—— 因kernel cgroup subsystem依赖task_struct.comm而非argv[0]!Read more

Posted in

Go程序在strace中显示“execve(./main, [\”worker\”], […]”—— 第二个参数才是它向OS申报的“运行名字”,90%开发者从未校验过!

第一章:Go语言运行名字是什么 … Go程序在strace中显示“execve(./main, [\”worker\”], […]”—— 第二个参数才是它向OS申报的“运行名字”,90%开发者从未校验过!Read more

Posted in

Go程序被systemd托管时,“Service Name”如何覆盖runtime.Caller(0).Func.Name()?—— systemd ExecStart=与argv[0]劫持深度剖析

第一章:Go程序被systemd … Go程序被systemd托管时,“Service Name”如何覆盖runtime.Caller(0).Func.Name()?—— systemd ExecStart=与argv[0]劫持深度剖析Read more