Date: Mon, 2 Jul 2001 22:00:10 -0700 From: "Robert L Sowders" <rsowders@usgs.gov> To: Zack Hobson <zgh+bsd@malfunktion.net> Cc: freebsd-stable@freebsd.org, Donn Miller <hackr_d@yahoo.com>, owner-freebsd-stable@FreeBSD.ORG Subject: Re: Benchmarking CVSup Message-ID: <OFF4218825.8F9AFBE3-ON88256A7E.0019CDB8@wr.usgs.gov>
next in thread | raw e-mail | index | archive | help
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 <zgh+bsd@malfunktion.net>
Sent by: owner-freebsd-stable@FreeBSD.ORG
06/15/2001 11:25 PM
To: Donn Miller <hackr_d@yahoo.com>
cc: freebsd-stable@freebsd.org
Subject: Re: Benchmarking CVSup
On Fri, Jun 15, 2001 at 11:05:38PM -0700, Donn Miller wrote:
> --- Chris BeHanna <behanna@zbzoom.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OFF4218825.8F9AFBE3-ON88256A7E.0019CDB8>
