samba用Windows 10访问上传快下载慢

发布于 2022-09-06 05:45:21 字数 2306 浏览 23 评论 0

在服务器上配置了samba,网络是千兆网,在Windows 10下访问时出现了奇怪的问题,上传速度能达到千兆网的满速(100+MB/s),但是下载时速度较慢而且不稳定(快时能到40+MB/s,慢时只有20+MB/s)。请问该如何配置才能达到下载满速?

smb.conf配置如下:

[global]
        obey pam restrictions = yes
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        max log size = 1000
        unix password sync = yes
        pam password change = yes
        usershare allow guests = yes
        log file = /var/log/samba/log.%m
        passwd program = /usr/bin/passwd %u
        netbios name = qakcn-nas
#       server string = qakcn-nas
        server string = %h server (Samba, Ubuntu)
        map to guest = bad user
        panic action = /usr/share/samba/panic-action %d
        syslog = 0
        server role = standalone server
        passdb backend = tdbsam
        workgroup = WORKGROUP
        load printers = no
        domain master = no
        preferred master = no
        kernel oplocks = yes
        name resolve order = wins lmhosts bcast
        wins support = no
        read raw = yes
        write raw = yes
        read size = 65536
        read prediction = yes
        dns proxy = no
        follow symlinks = no
        wide links = no
        aio read size = 16384
        aio write size = 16384
        aio write behind = true
        write cache size = 2097152
        max xmit = 65536
        large readwrite = yes
        use sendfile = yes
        min receivefile size = 16384
        getwd cache = yes
        socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[data-1]
        guest account = qakcn
        public = yes
        create mode = 644
        force user = qakcn
        path = /media/data-1
        writeable = yes
        force group = qakcn

[safe-1]
        public = yes
        create mode = 644
        write list = qakcn
        valid users = qakcn
        writeable = yes
        path = /media/safe-1
        revalidate = yes
        browseable = yes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

土豪我们做朋友吧 2022-09-13 05:45:21

楼主你好
我遇到了和你一样的问题

server centos7
client windows 10

请问您最后解决了嘛

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文