Performance
4 pagesMariaDB slow query logging and journald rotation
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
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
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
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. …