找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 12696|回复: 13

请高手看看我的samba速度怎么了?????(已解决)

[复制链接]
本帖最后由 d_zhou 于 2017-5-31 11:25 编辑

恩山藏龙卧虎,家里的一台NAS的samba速度一直搞不定,特来请教各位大侠。
局域网是千兆的,NAS直接接在8口千兆交换机上,开iperf测试如下:
  1. D:\软件\iperf-3.1.3-win64>iperf3.exe -c 192.168.1.100
  2. Connecting to host 192.168.1.100, port 5201
  3. [  4] local 192.168.1.162 port 51362 connected to 192.168.1.100 port 5201
  4. [ ID] Interval           Transfer     Bandwidth
  5. [  4]   0.00-1.00   sec   106 MBytes   892 Mbits/sec
  6. [  4]   1.00-2.00   sec   107 MBytes   901 Mbits/sec
  7. [  4]   2.00-3.00   sec   109 MBytes   913 Mbits/sec
  8. [  4]   3.00-4.00   sec   108 MBytes   907 Mbits/sec
  9. [  4]   4.00-5.00   sec   105 MBytes   881 Mbits/sec
  10. [  4]   5.00-6.00   sec   105 MBytes   885 Mbits/sec
  11. [  4]   6.00-7.00   sec   108 MBytes   909 Mbits/sec
  12. [  4]   7.00-8.00   sec   107 MBytes   895 Mbits/sec
  13. [  4]   8.00-9.00   sec   107 MBytes   894 Mbits/sec
  14. [  4]   9.00-10.00  sec   108 MBytes   910 Mbits/sec
  15. - - - - - - - - - - - - - - - - - - - - - - - - -
  16. [ ID] Interval           Transfer     Bandwidth
  17. [  4]   0.00-10.00  sec  1.05 GBytes   899 Mbits/sec                  sender
  18. [  4]   0.00-10.00  sec  1.05 GBytes   899 Mbits/sec                  receiver

  19. iperf Done.
复制代码
看起来好像不错,但是从NAS复制文件到win10的PC速度只有50MB/s左右,但速度曲线非常平,感觉被什么压制住了的样子。

可以排除是硬盘读写瓶颈,我做了ramdisk,如下是ramdisk速度:




如下是我的NAS上的samba配置文件:

  1. #======================= Global Settings =======================
  2. [global]
  3. workgroup = WORKGROUP
  4. server string = %h server
  5. netbios name = OPENMEDIAVAULT
  6. dns proxy = no
  7. log level = 3
  8. syslog = 3
  9. log file = /var/log/samba/log.%m
  10. max log size = 1000
  11. syslog only = yes
  12. panic action = /usr/share/samba/panic-action %d
  13. encrypt passwords = true
  14. passdb backend = tdbsam
  15. obey pam restrictions = yes
  16. unix password sync = no
  17. passwd program = /usr/bin/passwd %u
  18. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  19. pam password change = yes
  20. socket options = TCP_NODELAY IPTOS_LOWDELAY
  21. guest account = nobody
  22. load printers = no
  23. disable spoolss = yes
  24. printing = bsd
  25. printcap name = /dev/null
  26. unix extensions = yes
  27. wide links = no
  28. create mask = 0777
  29. directory mask = 0777
  30. use sendfile = yes
  31. aio read size = 16384
  32. aio write size = 16384
  33. local master = yes
  34. time server = no
  35. wins support = yes
  36. security = USER

  37. #======================= Share Definitions =======================
  38. [ramdisk]
  39. path = /tmp/ramdisk
  40. guest ok = yes
  41. browseable = yes
  42. inherit acls = yes
  43. hide dot files = yes
  44. #writable = yes
  45. write list = smb1 smb2
复制代码


小弟搞了好长时间了,实在看不出有什么不对头的地方。
========================================================================================
解决了,原来是笔记本的节能模式惹的祸,只要一插上电源,立马网速上来了。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
三个字,用ftp
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 zhouruixi 于 2017-5-26 20:52 编辑

是cpu瓶颈吗?
用NFS或者ftp看看速度如何
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
zhouruixi 发表于 2017-5-26 20:48
是cpu瓶颈吗?
用NFS或者ftp看看速度如何


CPU是AMD的E-350,X86,64bit,双核,1.6G,感觉应该不至于成为瓶颈吧,ftp正在搭,明天再看看。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层

ftp正在搭,明天再看看。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

d_zhou 发表于 2017-5-26 22:59
CPU是AMD的E-350,X86,64bit,双核,1.6G,感觉应该不至于成为瓶颈吧,ftp正在搭,明天再看看。

11年的U,还是amd,40nm,这个真不好说,开着top,看看cpu占用,或者复制大量文件(复制时间超过5分钟),看看系统5分钟平均负载
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
zhouruixi 发表于 2017-5-27 08:34
11年的U,还是amd,40nm,这个真不好说,开着top,看看cpu占用,或者复制大量文件(复制时间超过5分钟) ...

CPU loading还好,50M/s速度下loading 0.5左右,后来发现是笔记本节能引起的,插电源速度就能到87M/s的样子。还在查找电源平衡模式下有什么地方限制速度的。

看来NAS是没有问题的

多谢!

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
真心没觉得ftp能超过110MB,到时smb试过超过120MB
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
真心没觉得ftp能超过110MB,到时smb试过超过120MB
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
lcsy 发表于 2017-5-29 22:07
真心没觉得ftp能超过110MB,到时smb试过超过120MB

我之前测试ftp的速度和samba是一样的,当然之前是有问题没发现,用ftp排除一下samba设置有没有问题。120MB我是达不到的,开发商当初埋的网线用的面板都是cat5e,samba最多能跑100M就不错了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

CPU瓶颈。。。性能不够!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
bxkiter 发表于 2017-5-31 09:46
CPU瓶颈。。。性能不够!

不是的,是我的测试机子问题,和NAS没有关系。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

d_zhou 发表于 2017-5-31 09:31
我之前测试ftp的速度和samba是一样的,当然之前是有问题没发现,用ftp排除一下samba设置有没有问题。120M ...

我也是cat5e,而且当时装修不懂,网线应该是纯铜的,不是无氧铜的
smb吃cpu,速度看cpu
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我的samba 是上传能到30M  下载却只有18M  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 05:41

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表