Skip to content

Performance

4 pages
  • MariaDB slow query logging and journald rotation

    In Posts 634 words 3 min

    SelfhostedMariadbLinuxDevopsTlsPerformance

    Setting up very slow query logging in MariaDB demands attention to CNF flags and rotation logic; otherwise the log fast becomes noise. This note walks through the minimal commands to enable logging without a restart, format configuration, journald …

    Setting up very slow query logging in MariaDB demands attention to CNF flags and rotation logic; otherwise the log fast becomes noise. This note walks through the minimal commands to enable logging without a restart, format configuration, journald …

  • systemd-analyze blame: identifying the slowest units at system startup

    In Posts 528 words 3 min

    LinuxDevopsSystemdPerformance

    systemd-analyze blame is the first tool to reach for when boot time creeps up and obvious reasons aren’t to blame. It assigns loading time per unit, letting you instantly see who consumed the most seconds and serving as the natural starting point for …

    systemd-analyze blame is the first tool to reach for when boot time creeps up and obvious reasons aren’t to blame. It assigns loading time per unit, letting you instantly see who consumed the most seconds and serving as the natural starting point for …

  • 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. …