4 ms·
Yes the NULL RPC does nothing and should give a baseline for measuring the round trip time. I'm surprised that it doesn't give the expected results. Your test c
by mprovost 5y ago
Yes the NULL RPC does nothing and should give a baseline for measuring the round trip time. I'm surprised that it doesn't give the expected results. Your test case is going through the kernel, not sending raw RPCs across the wire. There are a lot of moving parts in the filesystem layer.
I implemented direct RPC calls for other RPCs like GETATTR but only for NFS version 3, and EFS uses version 4. Unfortunately the design of version 4 is a disaster from a protocol perspective. The designers wanted to enable multiple operations in a single RPC, but that's not supported by SUNRPC. So to maintain backwards compatibility they only implemented 2 procedures, NULL and COMPOUND. Everything inside a COMPOUND RPC is opaque. Well it's possible to construct but not with the standard RPC toolchain, so I never got around to it.