### Tests of old machine: 2005-11-19 ### Tests of new machine: 2005-11- ### ### NFS operation speeds: a practical comparison. From old `serv' (500MHz PIII, 128MB RAM) to box (1600MHz AthlonXP2000, 512MB RAM), read or write small and large files over nfs to test the speed. The local machine is box, and /dev/shm (tmpfs in RAM) is being used for storing files at that end. The server, serv, has 4 disks, all IDE (PATA). /dev/hda4 26G 16G 9.2G 63% /export/home /dev/hdb2 89G 84G 1.2G 99% /export/video /dev/hdd1 38G 28G 8.5G 77% /export/audio /dev/hdc1 57G 51G 3.5G 94% /export/sfw The first is mounted on box as /home. The last three are mounted on box under /home/public. Note that all tests here resulted only in a low CPU usage (<50%, often negligible) on the client, box. e.g. real:103s, user:0.2s, sys:7.2s ***************************** READ from /home (small files) serv$ find Maildir/ -type f | wc -l 9917 serv$ find Maildir/ -type d | wc -l 396 serv$ du -sm /home/nt/Maildir 125 box$ time cp -R /home/nt/Maildir /dev/shm/Maildir real 102.9s box$ time cp -R /dev/shm/Maildir /home/nt/Maildir_returned real 102.2s (nfsd on serv: 2 instances, taking around 10-25% CPU each) box$ rm -rf /dev/shm/Maildir box$ time cp -R /home/nt/Maildir_returned /dev/shm/Maildir real 78.0s (nfsd on serv: 2 instances taking ~25% CPU each, plus 2 others) box$ time rm -rf /home/nt/Maildir_returned real 8.6s ****************************************************** READ AND WRITE from/to /home *** read small, write large box$ time tar -cf Maildir.tar Maildir real 96.0s *** read large, write small box$ mkdir tst ; cd tst box$ time tar -xf ../Maildir.tar real 59.7s *** delete large and small box$ cd .. box$ time rm -rf Maildir.tar tst/ real 10.3s *** read small, write large box$ time tar -cf Maildir.tar Maildir real 80.9s *** read large, write small box$ mkdir tst ; cd tst box$ time tar -xf ../Maildir.tar real 55.0s *** delete large and small box$ cd .. box$ time rm -rf Maildir.tar tst/ real 9.5s *********************************** READ FROM /home, large file box$ ls -sm /home/nt/Maildir.tar 114696 box$ time cp /home/nt/Maildir.tar /dev/shm/ real 0.9s (presumably was cached) (try to clear cache) box$ tar -c [^M]* > /dev/null box$ tar -c /home/public/audio/ > /dev/null (then interrupt) box$ time cp /home/nt/Maildir.tar /dev/shm/ real 1.1s (hmmmm) (various things: malloc loads, etc.) box$ time cp /home/nt/Maildir.tar /dev/shm/ real 7.9s (ok -- just over 100Mbps if none was cached any more) ************************************** WRITE TO /home, large file box$ rm /home/nt/Maildir.tar box$ time cp /dev/shm/Maildir.tar /home/nt/ real 15.0s box$ time cp /dev/shm/Maildir.tar /home/nt/Maildir2.tar real 13.1s *************************************** WRITE TO /home, small files box$ mkdir /home/nt/tst ; cd /home/nt/tst box$ time tar -xf /dev/shm/Maildir.tar real 55.4s box$ rm -rf Maildir/ box$ time tar -xf /dev/shm/Maildir.tar real 55.6s ***************************************** READ FROM /home/public/sfw: small files serv$ cd /home/public/sfw/portage ; du -smc app* | tail -n1 73 serv$ find app-* -type f | wc -l 14062 box$ time cp -a /home/public/sfw/portage/app* /dev/shm/ real 129.2s box$ rm -r /dev/shm/app* box$ time cp -a /home/public/sfw/portage/app* /dev/shm/ real 104.6s ****************************************** READ FROM /home/public/video: large file $box ls -sm /home/public/video/tv/Yes_.......avi 234528 $box time cp /home/public/video/tv/Yes_.......avi /dev/shm/ real 16.6s $box rm /dev/shm/* $box time cp /home/public/video/tv/Yes_.......avi /dev/shm/ real 15.8s