|
本帖最后由 d_zhou 于 2017-5-31 11:25 编辑
恩山藏龙卧虎,家里的一台NAS的samba速度一直搞不定,特来请教各位大侠。
局域网是千兆的,NAS直接接在8口千兆交换机上,开iperf测试如下:
- D:\软件\iperf-3.1.3-win64>iperf3.exe -c 192.168.1.100
- Connecting to host 192.168.1.100, port 5201
- [ 4] local 192.168.1.162 port 51362 connected to 192.168.1.100 port 5201
- [ ID] Interval Transfer Bandwidth
- [ 4] 0.00-1.00 sec 106 MBytes 892 Mbits/sec
- [ 4] 1.00-2.00 sec 107 MBytes 901 Mbits/sec
- [ 4] 2.00-3.00 sec 109 MBytes 913 Mbits/sec
- [ 4] 3.00-4.00 sec 108 MBytes 907 Mbits/sec
- [ 4] 4.00-5.00 sec 105 MBytes 881 Mbits/sec
- [ 4] 5.00-6.00 sec 105 MBytes 885 Mbits/sec
- [ 4] 6.00-7.00 sec 108 MBytes 909 Mbits/sec
- [ 4] 7.00-8.00 sec 107 MBytes 895 Mbits/sec
- [ 4] 8.00-9.00 sec 107 MBytes 894 Mbits/sec
- [ 4] 9.00-10.00 sec 108 MBytes 910 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - - -
- [ ID] Interval Transfer Bandwidth
- [ 4] 0.00-10.00 sec 1.05 GBytes 899 Mbits/sec sender
- [ 4] 0.00-10.00 sec 1.05 GBytes 899 Mbits/sec receiver
- iperf Done.
复制代码 看起来好像不错,但是从NAS复制文件到win10的PC速度只有50MB/s左右,但速度曲线非常平,感觉被什么压制住了的样子。
可以排除是硬盘读写瓶颈,我做了ramdisk,如下是ramdisk速度:
如下是我的NAS上的samba配置文件:
- #======================= Global Settings =======================
- [global]
- workgroup = WORKGROUP
- server string = %h server
- netbios name = OPENMEDIAVAULT
- dns proxy = no
- log level = 3
- syslog = 3
- log file = /var/log/samba/log.%m
- max log size = 1000
- syslog only = yes
- panic action = /usr/share/samba/panic-action %d
- encrypt passwords = true
- passdb backend = tdbsam
- obey pam restrictions = yes
- unix password sync = no
- passwd program = /usr/bin/passwd %u
- passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
- pam password change = yes
- socket options = TCP_NODELAY IPTOS_LOWDELAY
- guest account = nobody
- load printers = no
- disable spoolss = yes
- printing = bsd
- printcap name = /dev/null
- unix extensions = yes
- wide links = no
- create mask = 0777
- directory mask = 0777
- use sendfile = yes
- aio read size = 16384
- aio write size = 16384
- local master = yes
- time server = no
- wins support = yes
- security = USER
- #======================= Share Definitions =======================
- [ramdisk]
- path = /tmp/ramdisk
- guest ok = yes
- browseable = yes
- inherit acls = yes
- hide dot files = yes
- #writable = yes
- write list = smb1 smb2
复制代码
小弟搞了好长时间了,实在看不出有什么不对头的地方。
========================================================================================
解决了,原来是笔记本的节能模式惹的祸,只要一插上电源,立马网速上来了。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|