Show /proc memory maps linux
Total virtual memory size of a process from smaps
cat /proc/<pid>/smaps | awk '/^Size/{sum+=$2} END{print sum/1024" MB"}'
more linux
all 133 commands →
Anonymous huge pages status
grep -E 'HugePages|AnonHugePages|Transparent' /proc/meminfo
Disable Transparent Huge Pages
echo never > /sys/kernel/mm/transparent_hugepage/enabled
Show NUMA topology
numactl --hardware
TCP tuning: increase backlog
sysctl -w net.core.somaxconn=65535 net.ipv4.tcp_max_syn_backlog=65535
TCP tuning: enable BBR
sysctl -w net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr