Score:0

Test latency from NFS to a NFS-client

cn flag

My team opted for a self build NFS server (using an EC2 instance to serve the other instances), instead of using AWS EFS. We would like to test the latency that our NFS has, then to compare it versus the EFS.

Is there a way/tool to test latency of these NFS servers?

Score:1
de flag

The simplest way is to run tshark on the client with options to print rpc response times:

$ tshark -i any -f "port 2049" -Y rpc -Tfields \
   -E separator=/t -E header=y \
   -e frame.number \
   -e rpc.repframe \
   -e rpc.time 
   -e ip.src -e ip.dst \
   -e nfs

The output will be something like:

frame.number    rpc.repframe    rpc.time    ip.src  ip.dst  nfs
Capturing on 'any'
3           x.x.x.x y.y.y.y Network File System, Ops(1): SEQUENCE
4   3   0.000593460 y.y.y.y x.x.x.x Network File System, Ops(1): SEQUENCE
8           x.x.x.x y.y.y.y Network File System, Ops(1): SEQUENCE
9   8   0.000797399 y.y.y.y x.x.x.x Network File System, Ops(1): SEQUENCE

The rpc.time in the reply frame is the difference between sending a request and receiving the reply.

NOTE: the options and output may be different depending tshark version.

Alternatively, you can just collect network traffic with dumpcap or tcpdump and analyze it with the wireshark.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.