※ 非洲豬瘟恐怖超越口蹄疫!


請勿網購、攜帶肉製品入境,12月18日起初犯罰款20萬,最高可罰100萬!!!

Troubleshooting-解決Mac SMB 網路傳輸速度緩慢 fix Mac 10Gbe SMB slow or delay

Troubleshooting-解決Mac SMB 網路傳輸速度緩慢 fix Mac 10Gbe SMB slow or delay

分享至您喜愛的社群
  •   
  • 7
  •  
  •  
  •  
  •  
  •  
  •  
    7
    Shares

如果架設了一台至少使用10GBe的超級NAS,每秒至少1GB/s,但你的MAC就是不願意乖乖聽話,即便採用SMB3的通訊協定,依然無比緩慢,那麼請跟著NathanYung(娜柴)這麼做! Follow these steps, if SMB speed between ZFS server and Mac is extremely slow or sometimes stall.

基於需要高效能的網路環境,NathanYung我有好幾台ZFS Server,Solaris 11.4,支援SMB 3通訊協定,但在MAC與Server之間的傳輸就是很緩慢,甚至會卡住,這到底是怎麼一回事呢?
If you use a powerful NAS like freenas, or Solaris 11.4, slow copying, what happened?


1).DS_Store problem

2)TCP Performance problems

3)SMB signing


How to fix it


fix 1)

open terminal
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
From https://support.apple.com/zh-tw/HT208209

贊助廣告



fix 2)

caused by interaction between Nagle’s Algorithm and Delayed ACK
根據研究報告指出:
http://www.stuartcheshire.org/papers/NagleDelayedAck/

delayed_ack=0 responds after every packet (OFF)
delayed_ack=1 always employs delayed ack, 6 packets can get 1 ack
delayed_ack=2 immediate ack after 2nd packet, 2 packets per ack (Compatibility Mode)
delayed_ack=3 should auto detect when to employ delayed ack, 4packets per ack. (DEFAULT)

Changing the “delayed ack” setting will help.
A setting of 0 or 2 usually helps decrease the Windows copying time.

1.Open a terminal window and type:
vi /etc/sysctl.conf
then :wq to save and quit.

OR use any editor to create or modify this file 【/etc/sysctl.conf】

  1. copy and paste, save the file. i.e.
    net.inet.tcp.delayed_ack=0
    OR
    net.inet.tcp.delayed_ack=2
  2. Reboot the system

fix 3)

From Apple documents
English: https://support.apple.com/en-us/HT205926
Chinese: https://support.apple.com/zh-tw/HT205926

Turn off packet signing on a macOS client

Check to see if your macOS computer has an /etc/nsmb.conf file.

If your macOS computer has a /etc/nsmb.conf file

  1. Open the /etc/nsmb.conf file.
  2. Set the signing_required value to “no,” like this:
    [default]
    signing_required=no

  3. Save the /etc/nsmb.conf file.
  4. Disconnect and then reconnect any mounted SMB shares to make the changes take effect.

If your macOS computer doesn’t have an /etc/nsmb.conf file

  1. Open Terminal.
  2. Use these commands to create an /etc/nsmb.conf file that has a signing_required value that’s set to “no”:
    sudo -s
    echo "[default]" >> /etc/nsmb.conf
    echo "signing_required=no" >> /etc/nsmb.conf
    exit

  3. Disconnect and then reconnect any mounted SMB shares to make the changes take effect.

▲ copy a file on a SSD of Mac to ZFS file server transfer speed 491MB/s.
廣告

發佈留言

Close Menu
×
×

Cart