【发布时间】:2017-04-14 09:10:52
【问题描述】:
我已经用 raspberry 设置了一个 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 秒之间变化,这太长了。
对此有何建议?
【问题讨论】:
标签: networking raspbian raspberry-pi2 samba