leeyuky
V2EX  ›  macOS

Mac SMB 分享 速度 上不去

  •  
  •   leeyuky · Aug 10, 2024 · 3482 views
    This topic created in 641 days ago, the information mentioned may be changed or developed.

    把家里的内网升级成了 2.5G 的 有一个小主机跑的 win 做了 smb server client 是我的 MacBook pro (芯片 m1 pro )

    iperf 测了两个点之间没问题可以跑 2.5g

    结果拷贝文件速度只有 1000m 。。。

    升级了跟没升级一样

    16 replies    2025-09-01 14:57:26 +08:00
    vela
        1
    vela  
       Aug 10, 2024   ❤️ 3
    macOS 的 samba 协议一直屎一坨。
    dilidilid
        2
    dilidilid  
       Aug 10, 2024
    试了下我在 samba 上能跑满全速
    msdurex
        3
    msdurex  
       Aug 10, 2024
    我的 Mac 40Gbps 雷电桥跑满。TrueNAS
    1dian01
        4
    1dian01  
       Aug 10, 2024   ❤️ 1
    用 webdav 好点
    cnrting
        5
    cnrting  
       Aug 10, 2024 via iPhone
    知足吧我只有 10M :(
    234ygg
        6
    234ygg  
       Aug 10, 2024
    果的 smb 只在自家设备间能用
    涉及到其他设备就会出现问题,速度协商不上去还不太影响使用,经常漏显示很多非英语命名的文件就完全没法用了
    234ygg
        7
    234ygg  
       Aug 10, 2024
    楼上提到了 webdav ,但 finder 一连接 webdav 就经常无响应,杀了 finder 就再也无法重启 finder ,只能重启系统
    dilidilid
        8
    dilidilid  
       Aug 10, 2024
    @234ygg 根据我的经验来说,Linux 的 Samba 兼容性是最好的,合理配置之后不管是 Linux 设备还是 Windows 设备还是 Apple 设备性能都没问题。Windows 和 Apple 设备互相之间兼容上就差很多
    234ygg
        9
    234ygg  
       Aug 10, 2024
    @dilidilid
    我就是 ubuntu 做的 samba 服务器,文件显示不全... 现在基本上只用 sftp 了
    dilidilid
        10
    dilidilid  
       Aug 10, 2024
    @234ygg 你开 catia 和 fruit 的 vfs 了吗,我这边也有大量中文和日文命名的文件,都没有问题
    234ygg
        11
    234ygg  
       Aug 10, 2024
    @dilidilid
    你这么一说我想起来了,之前我尝试启用 fruit 也会导致 finder 卡死,每次都得重启 Mac 给我整烦了,遂放弃。
    刚才又尝试折腾了几下,系统重启都卡住了...🤣
    请问能给个 smb.conf 示例参考下吗?
    dilidilid
        12
    dilidilid  
       Aug 10, 2024   ❤️ 2
    @234ygg
    [global]
    netbios name = nas
    workgroup = workgroup
    server role = standalone server

    security = user
    min protocol = SMB2
    map to guest = bad user

    log file = /var/log/samba/log.%m
    max log size = 1000

    vfs objects = catia fruit streams_xattr

    fruit:metadata = stream
    fruit:resource = xattr
    fruit:model = MacSamba
    fruit:posix_rename = yes
    fruit:veto_appledouble = no
    fruit:wipe_intentionally_left_blank_rfork = yes
    fruit:delete_empty_adfiles = yes

    [videos]
    path = /mnt/storage/videos
    comment = Videos
    browsable = yes
    writable = yes

    Samba 版本是 Version 4.17.12-Debian, MacOS 是最新的正式版
    234ygg
        13
    234ygg  
       Aug 10, 2024
    @dilidilid
    非常感谢!❤️ 不过还是有点问题,
    消失的文件确实显示出来了,但是没法用空格预览 也无法打开🤣 我明天再研究研究
    xiashali
        14
    xiashali  
       Aug 11, 2024
    @msdurex #3 5GB/s ?
    msdurex
        15
    msdurex  
       Aug 12, 2024
    @xiashali 对。
    fizi
        16
    fizi  
       Sep 1, 2025
    mac 的 smb 老是掉
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3786 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 05:04 · PVG 13:04 · LAX 22:04 · JFK 01:04
    ♥ Do have faith in what you're doing.