与Raspberry的网络共享非常慢

时间:2017-04-14 09:10:53

标签: networking raspbian raspberry-pi2 samba

我已经设置了一个带覆盆子的samba服务器,但问题是速度极慢。我主要使用它来观看我的照片,因此每个文件的大小最大约为5MB。树莓连接到千兆交换机,我通过以太网连接的电脑观看照片。

这是iperf

pi@raspberrypi ~ $ iperf -s -p 10000
------------------------------------------------------------
Server listening on TCP port 10000
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.200 port 10000 connected with 192.168.1.112 port 52907
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec   111 MBytes  92.7 Mbits/sec
[  5] local 192.168.1.200 port 10000 connected with 192.168.1.112 port 53695
[  5]  0.0-10.0 sec   108 MBytes  89.9 Mbits/sec
[  4] local 192.168.1.200 port 10000 connected with 192.168.1.112 port 55175
[  4]  0.0-10.0 sec   109 MBytes  91.1 Mbits/sec
[  5] local 192.168.1.200 port 10000 connected with 192.168.1.112 port 55760
[  5]  0.0-10.0 sec   110 MBytes  92.2 Mbits/sec
[  4] local 192.168.1.200 port 10000 connected with 192.168.1.112 port 55972
[  4]  0.0-10.0 sec   110 MBytes  92.1 Mbits/sec

对于pi的100 Mbit / s卡,这完全没问题。

我从USB硬盘上读到照片,通过它可以达到大约45 MB / s。因此,我希望在大约半秒内下载一张照片,但事实并非如此。目前,时间在3到5秒之间,这太过分了。

有关于此的任何建议吗?

1 个答案:

答案 0 :(得分:0)

读取磁盘/ ssd可能启动缓慢,几秒后才能达到45MB / s。因此,大部分时间都可以花在初始策略中,弄清楚如何从存储中读取图像文件。一旦完成,它会快速读取并发送它。

相关问题