NFS传输速度慢怎么解决

1,104 views
Skip to first unread message

馒头簸箕

unread,
Mar 21, 2013, 8:06:41 AM3/21/13
to sh...@googlegroups.com
老革命遇上问题了。

家里两个ATOM D525机器,一个做mldonkey下载(以前是PowerPC G4 Mac Mini,为了接SATA大硬盘换了ATOM),另外一个接着五个2T磁盘做家里的文件服务器。两个机器挂在同一个千兆交换机上。



先在问题:下载机上下好的电影拷贝到服务器机器上。

通过scp拷贝,速度只有9M-11MBytes/s

通过NFS拷贝(autofs),速度从37MB/s很快下降到5MB/s

通过HTTP wget,速度能35MB/s

通过另外一台Mac Mini电脑,netatalk拷贝,接近35MB的速度。

大家有啥好建议?

两台机器都是Ubuntu 12.10 x86_64


Chaos Eternal

unread,
Mar 21, 2013, 8:12:28 AM3/21/13
to sh...@googlegroups.com
profile

2013/3/21 馒头簸箕 <yaof...@gmail.com>:
> --
> -- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/groups/opt_out
>
>

Shell Xu

unread,
Mar 21, 2013, 8:51:31 AM3/21/13
to sh...@googlegroups.com
1. 不同方式的速度本来就有差异。我用http大概能到100M/s,用samba只有60M/s,ssh只有20M/s。
2. 35M/s不大对。如果说百兆网太快了,千兆网太慢了。
3. 真的只有profile。先用iperf测试互联网络速度。
> --
> -- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/groups/opt_out
>
>



--
无能者无所求,饱食而遨游,泛若不系之舟
blog: http://shell909090.com/blog/
twitter: http://twitter.com/shell909090

liyaoshi

unread,
Mar 21, 2013, 9:34:13 AM3/21/13
to sh...@googlegroups.com
35MB 是硬盘读取速度
 
瓶颈就在硬盘上了

liyaoshi

unread,
Mar 21, 2013, 9:35:42 AM3/21/13
to sh...@googlegroups.com
scp你就别指望了 每个包多加密一把,atom,你还指望啥
 
 

馒头簸箕

unread,
Mar 21, 2013, 9:52:19 AM3/21/13
to sh...@googlegroups.com
所以我不用scp,想来NFS应该是最快的才对,所以用autofs挂NFS。可是NFS咋又这么慢?

只要能保持35MB速度就可以。毕竟下载机这边是一个5400RPM的笔记本硬盘,也就这速度了。

david pu

unread,
Mar 21, 2013, 10:42:28 AM3/21/13
to sh...@googlegroups.com

我倒是觉得ftp 或rsync 方便些,估计和wget 差不多速度吧

Chaos Eternal

unread,
Mar 21, 2013, 10:56:19 AM3/21/13
to sh...@googlegroups.com
nfs走的是udp还是tcp?
丢包率如何?

最后还是profile吧

2013/3/21 馒头簸箕 <yaof...@gmail.com>:

liyaoshi

unread,
Mar 21, 2013, 11:16:44 AM3/21/13
to sh...@googlegroups.com
交换机不支持 jumbo frame?

mount read size 小点看看?



liyaoshi

unread,
Mar 21, 2013, 11:18:34 AM3/21/13
to sh...@googlegroups.com
ftp 会比 http 快

Xidorn Quan

unread,
Mar 21, 2013, 7:48:03 PM3/21/13
to sh...@googlegroups.com

为什么说 ftp 会比 http 快?

none_nobody

unread,
Mar 21, 2013, 8:41:00 PM3/21/13
to sh...@googlegroups.com
你都NFS了,为什么还要再考一遍呢? 直接将下载存放的目录设置成文件服务器不可以?

下载速度不会 5MB/s 吧。

当然您继续老问题的探究,就当我专门歪楼的。

On Thursday, March 21, 2013 8:06:41 PM UTC+8, 姚飞 wrote:
老革命遇上问题了。

david pu

unread,
Mar 21, 2013, 8:52:04 PM3/21/13
to sh...@googlegroups.com
网速应该不是瓶颈,所以iperf解决不了nfs的问题。nfs直接dd或者iozone一下,tune一把参数估计会好使些~


2013/3/21 Shell Xu <shell...@gmail.com>



--
 ()   ASCII Ribbon Campaign
 /\   Keep it simple!

大熊

unread,
Mar 21, 2013, 9:21:34 PM3/21/13
to sh...@googlegroups.com
其实干嘛不在文件服务器那atom上直接下载?
立志在女儿把我搞崩溃前把她养大
看着女儿一天天长大,可惜我还是菜鸟

liyaoshi

unread,
Mar 21, 2013, 9:52:52 PM3/21/13
to sh...@googlegroups.com
费电费硬盘

liyaoshi

unread,
Mar 21, 2013, 9:59:31 PM3/21/13
to sh...@googlegroups.com
payload小

Xidorn Quan

unread,
Mar 22, 2013, 12:42:51 AM3/22/13
to sh...@googlegroups.com
单个大文件就不存在这个问题了吧

2013/3/22 liyaoshi <liya...@gmail.com>



--
Xidorn Quan
GnuPG fingerprint: 6F1E DF9A D250 7505 63E2  345E 7570 8D3F 7C9A 1209

yaof...@gmail.com

unread,
Mar 22, 2013, 1:10:50 AM3/22/13
to sh...@googlegroups.com
下载是一个专门的机器,配了个旧的笔记本硬盘专用,坏了也不可惜。文件服务器是四个2T磁盘的RAID5阵列。

发自我的 iPad

liyaoshi

unread,
Mar 22, 2013, 1:26:19 AM3/22/13
to sh...@googlegroups.com
你这个一会馒头一会烧饼

马甲这么这么多啊

Ben Luo

unread,
Mar 22, 2013, 1:57:27 AM3/22/13
to shlug
不变的是猪头肉吧。

2013/3/22 liyaoshi <liya...@gmail.com>:

leo

unread,
Mar 22, 2013, 7:25:21 AM3/22/13
to sh...@googlegroups.com
传输速度慢是什么意思?
NFS就跟你本地硬盘应该是一样的呀,除非NFS服务器设置的带宽参数,你check一下~

Honglei Cong

unread,
Mar 25, 2013, 9:53:33 AM3/25/13
to sh...@googlegroups.com
rw xfer size都设成128KB

2013/3/21 馒头簸箕 <yaof...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages