Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to speed up file server access by SMB Direct

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how SMB Direct speeds up file server access. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

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.

There are three implementation versions of RDMA, iWARP, RDMA over Converged Ethernet (RoCE) and Infiniband (IB). Due to the popularity of converged network architecture, iWARP and RoCE are used more widely.

Representing iWARP is Chelsio's T520-CR.

Representing RoCE is Mellanox's ConnectX-3.

Both support RDMA, and both are two 10 Gigabit interfaces.

Run powershell

Install Data-Center-Bridging

Install-WindowsFeature Data-Center-Bridging

Set the network QoS policy for SMB Direct (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

Create a new NetQosPolicy

Enable-NetQosFlowControl-Priority 3

Disable flow control for other traffic

Disable-NetQosFlowControl-Priority 0pm 1, 2, 4, 5, 6, 7

Now we can apply this policy to the correct adapter (apply the network QoS policy to the target adapter.)

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

Create a traffic category and specify a maximum bandwidth of 30% for SMB Direct. Set the class name to "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.

Get a list of network adapters to identify the target adapters (to query which are RDMA adapters)

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"

This is the end of the article on "how SMB Direct speeds up file server access". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report