Linux 6.12 NFS Adds LOCALIO Protocol For "Extreme" Performance Boost

Written by Michael Larabel in Linux Storage on 25 September 2024 at 06:36 AM EDT. 11 Comments
LINUX STORAGE
The Network File System (NFS) changes have been merged for the ongoing Linux 6.12 development cycle. Notable this time with NFS is adding LOCALIO protocol extension support that can lead to fairly "extreme" performance improvements in scenarios where the NFS client and server are on the same host.

The LOCALIO protocol support allows the NFS client and server to reliably determine if they are on the same host. If they happen to be on the same host, the network RPC protocol for read/write/commit operations are bypassed. Due to bypassing the XDR and RPC for reads/writes/commits, there can be big performance gains to using the LOCALIO protocol.

One of the intended scenarios where it can be common for having the NFS client and server on the same host is when running containerized workloads being executed on the same server as the NFSD instance for providing the storage.

The performance benefits to using LOCALIO have been described as "extreme" in the documentation and demonstrated as a more than 10x improvement for 4K reads while having many libaio threads. But even in other cases there are very solid gains too:

LOCALIO


The LOCALIO protocol extension support was merged for Linux 6.12 as part of the NFS client updates along with introducing a new "noalignwrites" mount option for lock-less lost writes prevention. Plus a handful of bug fixes and other code clean-ups.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week