Disable Transparent Huge Pages

Disable THP at runtime (fix for Redis, MongoDB latency spikes)

echo never > /sys/kernel/mm/transparent_hugepage/enabled

tool
linux133 commands
tags
linuxmemorykernel

More linux commands

  • numactl --hardware

    NUMA nodes, CPU assignment, and memory distribution

  • sysctl -w net.core.somaxconn=65535 net.ipv4.tcp_max_syn_backlog=65535

    Increase socket listen backlog for high-connection services

  • sysctl -w net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr

    Enable Google BBR congestion control for better throughput

  • ss -ulnp

    All UDP listening sockets with process info

  • taskset -cp 0,1 <pid>

    Pin a running process to specific CPU cores

all 133 linux commands