Using rsync for copying some large files (24MB each):
bronger@steed:/tmp$ time rsync -r root@my_nas::media/distortion . Password: real 0m18.128s user 0m2.600s sys 0m5.756s
(Substract 2 seconds for typing the password.) Now, the same thing with NFS:
bronger@steed:/tmp$ time cp -a /mnt/media/distortion . real 0m5.569s user 0m0.036s sys 0m2.128s
How can this be? There is no compression or encryption involved, yet the CPU usage on the server side is 100%. It is a NAS with a slow ARM CPU, but even then any copying action should be limited by IO.
The rsyncd.conf file says:
pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock use chroot = no [media] path = /volume1/media comment = Main volume fake super = yes uid = 1000 gid = 1000 read only = no list = yes charset = utf-8 auth users = root secrets file = /etc/rsyncd.secrets