Increase SWAP Space and Open BBR
(Network Congestion Control)
SWAP Space တိုးခြင်း (ဥပမာ - 2GB သို့မဟုတ် 4GB တိုးခြင်း)
1. ရှိပြီးသား
swap ကို ခေတ္တပိတ်ပါ
root@server:~# swapoff -a
2. 4GB ရှိတဲ့ Swap ဖိုင်အသစ်တစ်ခု ဆောက်ပါ (1M x 4096 = 4GB)
root@server:~# dd if=/dev/zero of=/swapfile bs=1M count=4096
3. အဆိုပါ ဖိုင်ကို Security အတွက် Permission ပြင်ပါ
root@server:~# chmod 600 /swapfile
4. Swap အဖြစ် ပြောင်းလဲလိုက်ပါ
root@server:~# mkswap /swapfile
5. Swap ကို စတင် အသက်သွင်းပါ
root@server:~# swapon /swapfile
6. Server ပြန်တက်လာတိုင်း Swap အလိုအလျောက် ပွင့်နေစေရန်
root@server:~# echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
7. Swap စစ်ရန်
root@server:~# free -h
BBR (Network Congestion Control) ဖွင့်ခြင်း
1. BBR settings တွေကို system configuration ထဲ ထည့်ပါ
root@server:~#
echo "net.core.default_qdisc=fq" | tee -a /etc/sysctl.conf
root@server:~#
echo "net.ipv4.tcp_congestion_control=bbr" | tee -a /etc/sysctl.conf
2. Setting အသစ်တွေကို Server ထဲ Apply လုပ်ပါ (စတင်အသက်သွင်းပါ)
root@server:~# sysctl -p
3. BBR စစ်ဆေးရန် (Verification)
root@server:~# sysctl net.ipv4.tcp_congestion_control
Alternated another command to check BBR
root@server:~# lsmod | grep bbr
No comments:
Post a Comment