Hardware, HowTo’s, and the Haps of a Texan!

Kevin Blalock

March 20, 2009

NFS Speed Test: Quick and Dirty

No Gravatar

Here is a quick and dirty way to test your NFS transfer speed. What I did was to use the command “dd” to create a dummy file on the network share mounted with NFS. This will work when mounting a network share with Samba as well.

First, mount your network share if it is not already mounted.

Now, lets create the file,  here is the syntax of the dd command to create the file. I will fill the file with NULL characters.

dd if=/dev/zero of=zerofile.test bs=1k count=5000000

Explanation of above command:

if = input file

of = output file

bs = block size

count = file size in kb

The output will show you the size of the file created, how long it took, and how fast in MB/s that it “transferred” the file across the network.

Example output:

5120000000 bytes (5.1 GB) copied, 134.357 s, 38.1 MB/s

Leave a Reply