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 by Golang修行笔记|2026年3月23日|cgroup, Go程序测试配置, 微服务治理V2.3, task_struct.comm, argv[0]劫持, pids.max
Posted in 问题排查与答疑Go程序在strace中显示“execve(./main, [\”worker\”], […]”—— 第二个参数才是它向OS申报的“运行名字”,90%开发者从未校验过! 第一章:Go语言运行名字是什么 … Go程序在strace中显示“execve(./main, [\”worker\”], […]”—— 第二个参数才是它向OS申报的“运行名字”,90%开发者从未校验过!Read more by 异步行者|2026年3月23日|argv[0]劫持, Go程序测试配置, strace调试分析, 进程名称篡改, fork/execve系统调用
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 by Go语言实验室|2026年3月23日|systemd托管Go服务, NameNode性能, Go程序测试配置, runtime.Caller误用, Gin迁移Service, argv[0]劫持