Hi.

Something has been buging my about NFS for like... ever. From time to
time I asked here and there about the following issue without getting
any definitive answer.

I guess I must be one of the latest folks using amd to mount nfs shares
but why is that NFSv2 is so slow at writing compared to NFSv3?
I get the similar behavior on any kind of machines (I can provide dmesg
and all but since it happens everywhere) and this is not a new issue.

Is this discrepancy between v2 and v3 an expected behavior?

OpenBSD 4.4-current (GENERIC) #1572: Tue Aug 26 20:29:55 MDT 2008

# grep -v ^# /etc/exports
/var/tmp -maproot=0 localhost

# du -h install44.iso
216M    install44.iso

# mount_nfs -3 localhost:/var/tmp /mnt/nfs
# time cp install44.iso /mnt/nfs/v3
    0m48.18s real     0m0.02s user     0m0.71s system

# umount /mnt/nfs/ && mount_nfs -2 localhost:/var/tmp /mnt/nfs
# time cp install44.iso /mnt/nfs/v2
    1m21.54s real     0m0.00s user     0m0.80s system


Thanks.

-- 
Antoine

Reply via email to