這篇文章將為大家詳細(xì)講解有關(guān)SMB Direct如何加快文件服務(wù)器訪問(wèn)速度,小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
成都創(chuàng)新互聯(lián)專(zhuān)注于沈河企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站設(shè)計(jì),商城建設(shè)。沈河網(wǎng)站建設(shè)公司,為沈河等地區(qū)提供建站服務(wù)。全流程按需網(wǎng)站策劃,專(zhuān)業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,成都創(chuàng)新互聯(lián)專(zhuān)業(yè)和態(tài)度為您提供的服務(wù)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有三個(gè)實(shí)現(xiàn)版本,iWARP, RDMA over Converged Ethernet (RoCE)和Infiniband (IB)。由于融合網(wǎng)絡(luò)架構(gòu)的流行,iWARP和RoCE使用場(chǎng)景更加廣泛。
代表iWARP的是Chelsio的T520-CR
代表RoCE的是Mellanox的ConnectX-3
兩者都支持RDMA,且都是兩個(gè)萬(wàn)兆接口。
運(yùn)行powershell
安裝 Data-Center-Bridging
Install-WindowsFeature Data-Center-Bridging
為 SMB Direct 設(shè)置網(wǎng)絡(luò) 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
針對(duì)其他流量禁用流控制
Disable-NetQosFlowControl -Priority 0,1,2,4,5,6,7
Now we can apply this policy to the correct adapter(將網(wǎng)絡(luò) QoS 策略應(yīng)用于目標(biāo)適配器。)
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
創(chuàng)建流量類(lèi)別并為 SMB Direct 指定 30% 的高帶寬。 設(shè)置類(lèi)名稱(chēng)將為“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.
獲取網(wǎng)絡(luò)適配器列表來(lái)識(shí)別目標(biāo)適配器(以查詢哪些是RDMA 適配器)
Get-NetIPInterface
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"
關(guān)于“SMB Direct如何加快文件服務(wù)器訪問(wèn)速度”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。