Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2001 23:53:19 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        nate@yogotech.com
Cc:        dnelson@emsphone.com (Dan Nelson), des@ofug.org (Dag-Erling Smorgrav), freebsd-arch@FreeBSD.ORG
Subject:   Re: [PATCH] add a SITE MD5 command to ftpd
Message-ID:  <200103142353.QAA09476@usr08.primenet.com>
In-Reply-To: <15023.61042.768406.854325@nomad.yogotech.com> from "Nate Williams" at Mar 14, 2001 03:19:30 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> > Another thing to consider before adding SITE MD5 as a command is that
> > it's an extremely slow operation.  md5'ing a 10MB file takes about
> > 1/3rd of a second on my pIII/600.   It would take 5 minutes of CPU time
> > to md5 1-gig worth of sources, and that's assuming that the FTP server
> > is idle.  ftpd would have to cache the md5 checksum somewhere for it
> > to be acceptable, and then you've got the same caching problem (how
> > does ftpd know when the file has changed to is can update its cached
> > md5?).
> 
> Is that cost greater than the cost of sending the data out over the
> wire?

Depends; do we know any FTP servers that trumpet the number of users
they are currently supporting, where the marketing benefit of a larger
number of users exceeds the benefit of not sending useless files?

Remember that the only thing this is useful for is files that
change without changing the filename (e.g. no version number
in the name, etc.).

I'd argue that that was pretty rare.

Personally, I like the "SIZE" suggesion.

Not only that, it would allow a precomputation of estimated
time to completion of a download of a set of files, and could
also be used to provide a meaningful "percentage complete" or
other progress indicator.

Plus it's already there; it's just that the port's aren't
storing it when they store the MD5, but that can be changed.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103142353.QAA09476>