Profiling Linux Code with perf and Flamegraphs
A hands-on guide to sampling CPU call stacks with perf and rendering them into flamegraphs that clearly expose the real hot functions in your code.
NetBay journal
Practical guides for Linux, containers, CI/CD, self-hosting, and running VPS infrastructure from Netbay Engineering.
499 articles · 24 topics
A hands-on guide to sampling CPU call stacks with perf and rendering them into flamegraphs that clearly expose the real hot functions in your code.
Record who called which tool with which args, hash the result, and keep a replayable JSONL trail so incidents have evidence rather than guesses.
Fedora Server ships the newest kernel and container stack first, then expires in about 13 months. Learn who benefits and who should run an EL rebuild instead.
Run several domain-name apps on a single VPS by routing on the Host header with Nginx server blocks or Caddy host matchers, without any port tricks.
Handle API keys and credentials in pipelines without leaking them in logs, artifacts, or pull requests.
Read n_dead_tup, tune autovacuum for busy tables, and run targeted VACUUM so PostgreSQL 16 reclaims the heap and index space before bloat wins.
Ship a Node.js app with a git pull, npm install, build, and restart script so a tagged commit becomes a repeatable Ubuntu VPS deployment path.
Keep terminal sessions alive across disconnects with tmux: sessions, windows, panes, and persistence.
Build one image tag for amd64 and arm64 with Docker Buildx, push a single manifest, and verify every platform with buildx imagetools inspect.
Organize, search, and share your photos with Immich or Piwigo, self-hosted photo libraries with automatic backup, face recognition, and search.
Budget RAM and CPU across a crowded Docker host with explicit per-service limits and visibility so one runaway container never starves the rest.
Decide when a wildcard certificate helps on a VPS and when it hides hostname mistakes, extra names, and the extra ACME DNS-01 operational cost.