Skip to content

Performance

2 pages
  • bpftrace: one-liners that replace strace in production

    In Posts 844 words 4 min

    LinuxTracingBpfPerformanceDebug

    strace halts a process on every syscall. On a live server at 2000 RPS, that means timeouts and alerts. bpftrace runs through eBPF in the kernel — tracing happens in parallel, without stopping anything. The overhead difference is orders of magnitude. …

    strace halts a process on every syscall. On a live server at 2000 RPS, that means timeouts and alerts. bpftrace runs through eBPF in the kernel — tracing happens in parallel, without stopping anything. The overhead difference is orders of magnitude. …

  • strace: System Call Tracing for Diagnosing Hangs and Leaks

    In Posts 822 words 4 min

    LinuxDebuggingTroubleshootingPerformance

    When a service hangs, standard tools like top, htop, and ps show the state but not the cause. If a process is in state D (uninterruptible sleep), it’s waiting on a syscall. strace attaches to a live process and outputs every system call in real time. …

    When a service hangs, standard tools like top, htop, and ps show the state but not the cause. If a process is in state D (uninterruptible sleep), it’s waiting on a syscall. strace attaches to a live process and outputs every system call in real time. …