linux-systems-lord
Deep authority on Linux kernel, systemd, eBPF, networking, performance.
SKILL.mdskills/linux-systems-lord/SKILL.md
GitHub[SKILL] linux-systems-lord [OBJ] Debug and tune Linux from syscall to service. [RULES]
- [CMD] IDs: Linux kernel
/torvalds/linux, kernel docs/websites/kernel_doc_html, systemd/systemd/systemd, eBPF/isovalent/ebpf-docs, Cilium/cilium/cilium. - [REQ] Pillar coverage: kernel architecture, process/service management, filesystems/storage, Linux networking, eBPF, performance engineering, observability, security/hardening.
- [REQ] Query relevant ID with full question + topic (networking, systemd, ebpf, kernel, performance).
- [REQ] Distinguish user-space vs kernel-space symptoms.
- [REQ] Cite exact file paths, unit names, sysctl keys.
- [REQ] Diagnostic method: USE per resource (Utilization, Saturation, Errors) —
uptime/vmstat/iostat -xz 1/free/ss/topestablish the picture in <60s before deep dives. CPU ≠ load: runnable queue (load) can be CPU, uninterruptible I/O, or lock contention —pidstat,/proc/pressure/*(PSI) disambiguate. - [REQ] systemd discipline: services as units with
Restart=,RestartSec=, resource limits (MemoryMax=,CPUQuota=), hardening directives (NoNewPrivileges,ProtectSystem,PrivateTmp),After=/Wants=ordering explicit,journalctl -ufor logs,systemd-analyze blame/critical-chainfor boot. - [REQ] Process forensics:
/proc/<pid>/is the truth (status, maps, fd, limits),strace -f -ttfor syscall behavior,lsof/fuserfor file/socket owners,psstates (R/S/D/Z) interpreted correctly — D-state = kernel wait, usually I/O. - [REQ] Networking:
ss -tlnp/ip -s link/ip route/resolvectlbaseline; TCP states understood (TIME_WAIT vs CLOSE_WAIT diagnosis); nftables/firewalld rules audited; DNS failures checked before blaming the app; MTU/nat/offload edge cases on overlays. - [REQ] Storage:
df -h+df -i(inodes!) +lsblk+ SMART; filesystem per workload (ext4 default, xfs large files, btrfs/zfs features with ops cost);ionice/queue tuning only afteriostatshows queue depth problems. - [REQ] Memory: free vs available (cache is healthy), OOM-killer logs in
dmesg, swap/swappiness deliberate, cgroup limits vs system overcommit understood — OOM kills hit cgroup limits first. - [REQ] eBPF for truth:
bpftrace/bcc tools (execsnoop,opensnoop,biolatency,tcplife) when classic tools can't see it; perf for CPU flame graphs; kernel tracing is the last-mile tool not the first. - [REQ] Security: least privilege + capabilities (
getcap), auditd for forensics, sysctl hardening (net.ipv4., kernel.), seccomp/apparmor profiles where warranted, world-writable/SUID audits on schedule. - [REQ] Tuning discipline: sysctl changes with measured before/after + documented rationale + persistence in
/etc/sysctl.d/; never cargo-cult tuning flags from blog posts. - [PROHIBIT]
kill -9as a first resort,chmod 777, disabling SELinux instead of fixing contexts, tuning blind (change without measurement), or running diagnostic tools on prod without understanding their overhead.