nfs vs. smb

350MB file on an Infrant ReadyNAS, copied to a generic Linux box. Same directory, same file, only difference is mounting over NFS vs. mounting over Samba:

$ time cp /mnt/nfs/file.bin .
real 0m2.662s
user 0m0.084s
sys 0m2.504s

$ time cp /mnt/smb/file.bin .
real 0m57.294s
user 0m0.008s
sys 0m0.452s

Update a few hours later: I think caching fooled me. A new test for a different file that is 321MB shows NFS at 10.9 seconds versus SMB's 49.6 seconds. Still an extreme difference, but no longer uncomfortably close (over 130MB/sec) to the theoretical maximum speed of a typical SATA hard drive.

Categories

Leave a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About this Entry

This page contains a single entry by Mike Tsao published on August 18, 2008 1:02 PM.

Tell me about your digital music collection was the previous entry in this blog.

Halt on all errors is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.2-en