Cover V03, I06
Article
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Listing 1

nov94.tar


Listing 1: RPC_gen--a sample NFS traffic-generating script

#################################################
#
#  Title             : RPC_gen
#  Programmer : Robert Berry
#  Date             : 8/23/94
#  Description   : This is a NFS traffic
#      generation script. It will attempt to
#      generate RPC requests that reflect the
#      type of RPC requests that are generated
#      by the normal network work-load.
#
#################################################
# When running this script you must be super user
# and should set permissions accordingly.
#################################################
# Display NFS client information before you
# reinitialize the settings.
#################################################
echo "__________________________________________"
echo "These are the stats for the client before "
echo "the system is reinitialized.
echo "__________________________________________"
echo
echo -n "UPTIME REPORT"
uptime
echo
nfstat -cn
echo
#################################################
# The first copy is simply to get the file where
# I want it.
#################################################
echo "Performing setup....please wait."
cp bigfile /remote_fs/bigfile1
#################################################
# Set all RPC percentages to 0%
#################################################
echo "Reinitializing nfsstat percentages."
nfsstat -z > nul
echo "Running test..."
#################################################
# These three cp commands will generate approx
# 50% reads and 40% writes.
#################################################
cp /remote_fs/bigfile1 /remote_fs/subdir/bigfile2
cp /remote_fs/subdir/bigfile2 /localdir/bigfile3
cp /remote_fs/subdir/bigfile2 /localdir/bigfile4
rm /remote_fs/bigfile1
rm /remote_fs/subdir/bigfile2
rm /localdir/bigfile3
rm /localdir/bigfile4
echo "__________________________________________"
echo "This is the RPC percentage results after"
echo "the artificial traffic generation."
echo "__________________________________________"
echo
echo -n "NEW UPTIME REPORT"
uptime
echo
nfsstat -cn
echo
echo "__________________________________________"
echo "        SPRAY STATS ON ALL SERVERS"
echo "__________________________________________"
echo
for a in Server1 Server2 Server3 Server4
do
echo -n "============"
echo -n $a
echo    "============"
spray $a
done
echo
echo "****************END OF TEST***************"