DEV Community

Cover image for NAS SMB Direct and RDMA: Maximum Throughput Without CPU Bottlenecks
Kiara Taylor
Kiara Taylor

Posted on

NAS SMB Direct and RDMA: Maximum Throughput Without CPU Bottlenecks

NAS Appliances solutions are essential here.

NAS SMB Direct and RDMA: Maximum Throughput Without CPU Bottlenecks
At high storage throughputs, CPU overhead for protocol processing becomes a bottleneck that prevents the full bandwidth of fast networks and NVMe storage from being delivered to applications. SMB Direct — SMB protocol running over RDMA (Remote Direct Memory Access) capable network adapters — moves data directly between NAS and client memory without involving the CPU on either end for the data transfer path. The result is lower latency, higher throughput, and dramatically reduced CPU utilization compared to conventional SMB over standard TCP/IP networks.
Understanding RDMA and Why It Matters for Storage
Conventional network I/O requires the CPU to process each network packet: interrupting processing, copying data from network buffers to application memory, and managing the protocol state machine for every operation. At 10 GbE speeds this overhead is manageable; at 25 GbE and higher, CPU overhead for network processing becomes significant. RDMA (Remote Direct Memory Access) enables network adapters to read and write application memory directly, bypassing the CPU for data transfer operations. The CPU is involved only for control operations (initiating transfers, signaling completion) rather than data movement. For storage workloads where data transfer is the dominant operation, RDMA eliminates the CPU bottleneck that limits throughput in conventional networking architectures.
SMB Direct Protocol Mechanics
SMB Direct is Microsoft's implementation of SMB over RDMA, standardized in SMB 3.0 and later. When both the client and server support SMB Direct and are connected via RDMA-capable network adapters, the protocol negotiation automatically establishes an RDMA channel for data transfers while continuing to use standard TCP for control messages. Applications using SMB file access do not require any modification — SMB Direct is transparent to the application layer. The performance improvement is automatic once the infrastructure (RDMA-capable NICs on both ends and appropriate network fabric) is in place. For applications already using SMB for NAS access, upgrading network infrastructure to RDMA provides throughput improvement without application changes. Enterprise Enterprise NAS systems with SMB Direct support benefit from RDMA NICs configured for optimal RDMA performance settings, not just standard TCP/IP settings applied to RDMA hardware.
Network Hardware Requirements for SMB Direct
SMB Direct requires RDMA-capable network adapters on both the NAS system and client hosts. Three RDMA technologies are available: InfiniBand (highest performance, dedicated fabric), RoCE (RDMA over Converged Ethernet, v2 is most widely deployed), and iWARP (software RDMA over standard TCP/IP). RoCE v2 is the most common choice for NAS environments because it runs over standard Ethernet infrastructure — existing 25 GbE or 100 GbE switches work with RoCE v2 NICs without dedicated InfiniBand fabric. RoCE requires Priority Flow Control (PFC) configuration on switches to prevent packet drops that would degrade RDMA performance, making switch configuration a critical part of the deployment. backup and disaster recovery that list RDMA support should be evaluated for which RDMA transport they support, since InfiniBand-only support does not help environments planning to use RoCE over existing Ethernet infrastructure.
Performance Comparison: SMB Direct vs. Standard SMB
The performance advantage of SMB Direct depends heavily on network speed and workload characteristics. At 10 GbE, the difference between SMB Direct and standard SMB is modest because CPU processing capacity is adequate for 10 GbE throughput. At 25 GbE and 100 GbE, the difference becomes substantial — standard SMB with high-throughput workloads may saturate CPUs and fail to achieve line rate, while SMB Direct achieves near-line-rate throughput with minimal CPU consumption. For latency-sensitive workloads, SMB Direct reduces round-trip latency by eliminating kernel network stack processing from the critical path. Environments where applications are CPU-constrained by network I/O processing see the most dramatic improvement from SMB Direct adoption, particularly workloads that combine high throughput with many concurrent small operations.
Hyper-V and SMB Direct Integration
Microsoft Hyper-V specifically supports storing virtual machine files on SMB 3.0 shares, and SMB Direct dramatically improves virtual machine I/O performance in this configuration. Live Migration over SMB Direct transfers virtual machine memory at near-wire speed with minimal CPU overhead on both source and destination hosts, reducing live migration time for large VMs. Virtual machine storage I/O performance over SMB Direct approaches or matches the performance of locally-attached storage for many workloads, making network-attached VM storage viable for performance-sensitive virtual workloads that previously required local storage. Scale Out File Server (SOFS) configurations in Windows Server clusters combine Cluster Shared Volumes with SMB Direct for highly available NAS storage that serves Hyper-V VMs with low latency and high throughput. Scale Out NAS architectures can deliver the aggregate bandwidth that large Hyper-V clusters require from shared SMB Direct storage.
Deployment Considerations and Configuration
Successfully deploying SMB Direct requires coordination across multiple configuration layers. RDMA NICs on both NAS and hosts must be configured with appropriate driver settings for the chosen RDMA transport. Network switches must be configured with PFC for RoCE or appropriate QoS for iWARP. SMB Direct must be enabled on the NAS server and confirmed active during the SMB connection negotiation. Verification tools that confirm RDMA is active (rather than falling back to standard TCP) should be run after deployment — SMB connections silently fall back to TCP when RDMA negotiation fails, meaning administrators may believe SMB Direct is active when standard SMB is actually being used. Performance benchmarking that measures CPU utilization alongside throughput confirms whether RDMA is providing the expected CPU overhead reduction.
SMB Direct for SQL Server and Database Workloads
SQL Server supports storing database files directly on SMB 3.0 shares, and SMB Direct brings database-appropriate latency to network-attached SQL Server storage. Database I/O patterns — many small random reads and writes with strict latency requirements — benefit from RDMA's latency reduction more than throughput-focused workloads. SQL Server configurations that previously required local NVMe storage for performance reasons may achieve adequate performance on RDMA-attached NAS, enabling shared SQL Server storage that simplifies backup, high availability, and management compared to local storage configurations.
SMB Direct transforms NAS from a high-latency file protocol into a high-performance storage transport that approaches the characteristics of local storage. For environments where network throughput and CPU overhead are limiting NAS performance, RDMA infrastructure investment delivers performance improvements that cannot be achieved by upgrading NAS hardware alone.

Top comments (0)