open-menu closeme
Engineering
github linkedin rss
  • Set GOMAXPROCS for small Go programs on big hosts

    calendar Dec 1, 2026 · 10 min read · Go Rust Container Performance  ·
    Share on: twitter copy

    Multi-tenant hosts often run many copies of small Go programs: shims, credential refreshers, sidecars, one per container or one per tenant. Each copy does little work, but each one starts with GOMAXPROCS set to the number of CPUs it can see, which on a large host is the whole machine. The Go runtime sizes parts of its …


    Read More

Peng Zhang

Software Engineer

Recent Posts

  • Why untouched Go slices can end up in physical memory more often under GOMEMLIMIT
  • Set GOMAXPROCS for small Go programs on big hosts
  • Remount sysfs to make its superblock rw: mount -o remount,rw /sys
  • Page-cache thrashing on EC2: kill the tenant before it takes the host down
  • Pre-load container images on the Bottlerocket read-only root filesystem
  • Leaked empty directories exhaust inodes
  • Share one client per service
  • Debugging zero disk reads after moving to Bottlerocket

Tags

LINUX 30 GO 24 BOTTLEROCKET 11 CONTAINER 11 PERFORMANCE 11 ALGORITHMS 8 INTERVIEW 7 CONCURRENCY 4 SYSTEMD 4 DISTRIBUTED SYSTEM 3 GUIDE 3 SECURITY 3 AWS 2 CONTAINERS 2
All Tags
ALGORITHMS8 AWS2 BOTTLEROCKET11 CONCURRENCY4 CONTAINER11 CONTAINERS2 CRYPTOGRAPHY1 DATABASES1 DISTRIBUTED SYSTEM3 DNS1 DOCKER1 EC22 GO24 GUIDE3 INTERVIEW7 LINUX30 NETWORK1 NFS1 PERFORMANCE11 RUST1 SECURITY3 SELINUX2 SHELL1 SYSTEMD4 TESTING1 WEB2
[A~Z][0~9]
Peng Zhang

Copyright 2022-  PENG ZHANG. All Rights Reserved

to-top