Ubuntu

查詢 PCIe 裝置速度

lspci | grep -i 3ware
01:00.0 RAID bus controller: 3ware Inc 9650SE SATA-II RAID PCIe (rev 01)
lspci -n | grep 01:00.0
01:00.0 0104: 13c1:1004 (rev 01)
sudo lspci -n -d 13c1:1004 -vvv | grep -i width
LnkCap: Port #0, Speed 2.5GT/s, Width x8, ASPM L0s L1, Exit Latency L0s <512ns, L1 <64us
LnkSta: Speed 2.5GT/s, Width x4, TrErr- Train- SlotClk- DLActive+ BWMgmt- ABWMgmt-

 

TCP BBR – Google 設計針對 TCP 擁塞的演算法

Linux Kernel 4.9 之後,的都有支援。

參考文獻:

TCP congestion control

TCP擁塞控制

啟用 BBR

echo 'net.core.default_qdisc=fq' >> /etc/sysctl.conf
echo 'net.ipv4.tcp_congestion_control=bbr' >> /etc/sysctl.conf 

重新載入 /etc/sysctl.conf

sudo sysctl -p

檢查是否啟用 BBR

sudo sysctl net.ipv4.tcp_available_congestion_control

結果:

net.ipv4.tcp_available_congestion_control = reno cubic bbr
sudo sysctl net.ipv4.tcp_congestion_control

結果

net.ipv4.tcp_congestion_control = bbr