Help us understand the problem. What is going on with this article?

LinuxとMacでのRWIN,MTUの設定

More than 5 years have passed since last update.

あまり設定の詳しいことは知らないけどとりあえず枠は大きくすれば速くなるものなので.MTUは環境によって変わるので調べること.自宅環境はBフレッツなので1454に.

Linuxでの設定

net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_wmem = 4096 257232 1028928
net.ipv4.tcp_rmem = 4096 257232 1028928
net.ipv4.tcp_mem = 2048000 2048000 2048000
net.core.rmem_default = 257232
net.core.wmem_default = 257232
net.core.rmem_max = 1028928
net.core.wmem_max = 1028928

を /etc/sysctl.conf に追記し,sudo sysctl -p で反映.

# The primary network interface
auto eth0
iface eth0 inet static
    address 182.48.40.100
    mtu 1454

の MTU の設定行を /etc/network/interfaces の適切な位置に書き込む.一時的には ifconfig eth0 mtu 1454 で良い.

Macでの設定

$ sudo sysctl -w net.inet.tcp.recvspace=262144
net.inet.tcp.recvspace: 65536 -> 262144
$ sudo ifconfig en0 mtu 1454

起動時に反映させるにはスクリプト書いて登録しておかないといけないのかな.そこについてはさらに調べる必要がある.

参考文献

Ubuntu関係
http://linux2.g.hatena.ne.jp/lnznt/20120708/1341729750
http://d.hatena.ne.jp/poez22/20110511/1305072154
Mac関係
http://macdeunix.com/modules/xfsection/article.php?articleid=21

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away