溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

SMB Direct如何加快文件服務器訪問速度

發布時間:2021-11-23 13:55:07 來源:億速云 閱讀:438 作者:小新 欄目:系統運維

這篇文章將為大家詳細講解有關SMB Direct如何加快文件服務器訪問速度,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

SMB Direct Requirements:
DMA NICs
Windows feature
QOS policy
Traffic class

RDMA (Remote Direct Memory Access) is based on Direct Memory Access

Remote DMA, or RDMA, is a technology that allows two different computers with RDMA network adapters to write data from the memory of one machine to the memory of another without involving the processor or even the processor cache of either computer.
The data goes from RAM to NIC to NIC to RAM. In the beginning of this course I said that if you wanted to transfer larger files faster you needed to buy a faster NIC, this is a faster NIC.

RDMA有三個實現版本,iWARP, RDMA over Converged Ethernet (RoCE)和Infiniband (IB)。由于融合網絡架構的流行,iWARP和RoCE使用場景更加廣泛。
代表iWARP的是Chelsio的T520-CR
代表RoCE的是Mellanox的ConnectX-3
兩者都支持RDMA,且都是兩個萬兆接口。

運行powershell
安裝 Data-Center-Bridging
Install-WindowsFeature Data-Center-Bridging

為 SMB Direct 設置網絡 QoS 策略(445 is the port number for Microsoft file sharing, or SMB. the priority that I'm going to assign it is a 3.)
New-NetQosPolicy "SMB" -NetDirectPortMatchCondition 445 -PriorityValue8021Action 3

建立新的NetQosPolicy
Enable-NetQosFlowControl -Priority 3

針對其他流量禁用流控制
Disable-NetQosFlowControl -Priority 0,1,2,4,5,6,7

Now we can apply this policy to the correct adapter(將網絡 QoS 策略應用于目標適配器。)
Enable-NetAdapterQos -InterfaceAlias "Slot 2*"

If you need to know your interface alias you can use the Get-NetIPInterface to list all of your network interfaces and it will show the interface alias for each one.
Get-NetIPInterface

創建流量類別并為 SMB Direct 指定 30% 的最高帶寬。 設置類名稱將為“SMB” 。And specify ETS as the Algorithm that will apply that.
New-NetQosTrafficClass "SMB" -Priority 3 -BandwidthPercentage 30 -Algorithm ETS

If your network adapter supports RDMA then all you need to do is make sure it's enabled on that NIC.
獲取網絡適配器列表來識別目標適配器(以查詢哪些是RDMA 適配器)
Get-NetIPInterface
SMB Direct如何加快文件服務器訪問速度

And specifically I'm looking for the vEthernet with the name of the virtual switch that my VM connects to. And I'm going to enable RDMA for the vEthernet, or the virtual network adapter that connects my server to the virtual switch named Adapter 1
Enable-NetAdapterRDMA "vethernet (Adapter 1)"

Now if you find that after creating and enabling these policies that things stop working the way they should or situations get worse removing these policies uses command very similar to the ones used to create the objects.
Remove-NetQosTrafficClass "SMB"
Remove-NetQosPolicy "SMB"

關于“SMB Direct如何加快文件服務器訪問速度”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女