タグ

ブックマーク / shin.moe-nifty.com (1)

  • iproute+tc による帯域制限: おうちのサーバ

    RedHat や CentOS には標準で iproute+tc が入っているみたい。 これを使うと eth0 の送出帯域を制限できる (受信帯域は制限不可)。 遅い回線での挙動などを簡単にエミュレーションするには便利。 ・帯域制限 (例:上限を 800Kbit/s に制限) # tc qdisc add dev eth0 root tbf limit 15Kb buffer 10Kb/8 rate 100Kbps -- Kbps と書くとなぜか Kbyte/s になるので、これで 800Kbit/s になる ・状態表示 # tc -s qdisc ・解除 # tc qdisc del dev eth0 root ■ 参考サイト traffic control Mini-Howto Linux(cbq.init)で帯域制限をかける

    iproute+tc による帯域制限: おうちのサーバ
  • 1