设置ubuntu tcp缓存

#5 Post by faster5on5windows » 2016-05-24 05:44

botg wrote:As root, execute this command to show the current limits:

Code: Select all

sysctl -a | grep net.*rmem
To increase them use sysctl -w, e.g. like this:

Code: Select all

sysctl -w net.ipv4.tcp_rmem=''40960 873800 62914560'

Thank you so much! 
The issue was solved with:
sysctl -w net.ipv4.tcp_rmem='40960 873800 62914560'
sysctl -w net.core.rmem_max=8388608

Question 1. Is that the best number for net.core.rmem_max? The default was 212992.

Question 2. It turns out lftp DOES use segmented downloading by default. However without segmented downloading [pget -n 1 filename] and without the sysctl mod, lftp is still faster than filezilla (1.8MB/s per file vs 800KB/s. Any idea why this is?

After the mod speeds changed to-
-filezilla max 4MB per file, speed average 3MB per file. (Increase from 800KB per file). No difference between ftp and sftp.
-lftp 1.8MB/s (not segmented). (No increase)

Question 3. Why does Filezilla need this mod when no other program or type of download needs it or is effected by it? (except for lftp but this mod doesn't seem to effect lftp's speed).

Question 4. Do these mods have any other effects (increased chance of file corruption etc)

Question 5. If there are no negative effects to these settings then why are they not default?

Last edited by faster5on5windows on 2016-05-24 15:35, edited 2 times in total.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值