From owner-freebsd-stable Mon Jul 2 22: 0:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from gscamnlm03.wr.usgs.gov (gscamnlm03.wr.usgs.gov [130.118.4.113]) by hub.freebsd.org (Postfix) with ESMTP id 6C3E437B401; Mon, 2 Jul 2001 22:00:11 -0700 (PDT) (envelope-from rsowders@usgs.gov) To: Zack Hobson Cc: freebsd-stable@freebsd.org, Donn Miller , owner-freebsd-stable@FreeBSD.ORG Subject: Re: Benchmarking CVSup MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: "Robert L Sowders" Date: Mon, 2 Jul 2001 22:00:10 -0700 X-MIMETrack: Serialize by Router on gscamnlm03/SERVER/USGS/DOI(Release 5.0.7 |March 21, 2001) at 07/02/2001 10:00:10 PM, Serialize complete at 07/02/2001 10:00:10 PM Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Try this one, it will print the fastest hop first. The sever with the fewest hops might not be the fastest. This does not mean that fastest to answer will produce the quickest downloads, there are too many other unknown factors to consider. Your experience will rule here. The following script will print out the fastest site first of the 16 mirrors. There will be no output untill they have all been tracerouted, about 30 seconds on my connection, YMMV. This will give lots of detail. Fastest first. #!/bin/sh for i in `jot 16` do echo -n "cvsup${i} " traceroute -n cvsup${i}.freebsd.org 2>&1 | tail -1 done | sort +7 -n This will just give the fastes first, with the speed. The -m 20 means limit it to 20 hops, adjust as necessary. #!/bin/sh for i in `jot 16` do MS=`traceroute -n -m 20 cvsup${i}.freebsd.org 2>&1 |\ tail -1 | cut -f5,6 -d" "` echo " " echo "cvsup${i} $MS " done | sort +1 -n Have fun. Zack Hobson Sent by: owner-freebsd-stable@FreeBSD.ORG 06/15/2001 11:25 PM To: Donn Miller cc: freebsd-stable@freebsd.org Subject: Re: Benchmarking CVSup On Fri, Jun 15, 2001 at 11:05:38PM -0700, Donn Miller wrote: > --- Chris BeHanna wrote: > > Here's a little script to work through them all. With a modicum of > > effort, it could be made to just print the hopcounts, but I wasn't > > that enthusiastic the night I wrote it. > > Actually, it should go from 1->16. A more compact way to do it would > be: Try piping it to tail, that compresses the output nicely: #!/bin/sh i=1 while [ $i -le 16 ] ; do traceroute cvsup$i.freebsd.org|tail -n 1 i=`expr $i + 1` done This gives you a nice two-line summary of each traceroute, at least it did on my 4.3-STABLE server. -zack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message