Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2002 12:23:18 -0700 (PDT)
From:      Eric Moss <ericmoss@inebraska.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/43721: inefficient port downloads
Message-ID:  <200210051923.g95JNIuT094409@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         43721
>Category:       ports
>Synopsis:       inefficient port downloads
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 05 12:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Eric Moss
>Release:        4.6-RELEASE
>Organization:
>Environment:
FreeBSD kirk.localdomain 4.6-RELEASE #0: Sat Aug 17 00:47:15 CDT 2002  ericmoss@kirk.localdomain:/usr/src/sys/compile/MYKERNEL  i386
>Description:
In, for example, /usr/ports/www/linux-netscape-7.0, a "make" searches for every file individually.  If the first ftp site in the list doesn't have a certain file, the next site is checked, and so on.  If only the FreeBSD site has any of the files needed for the port (as in this case), every ftp site gets checked for every file, and over a slow connection, it can take several minutes per file just to get to the site(s) that might have it.  Agony results.
>How-To-Repeat:
[1] Get yourself a lame modem connection in a Midwestern state. ;)

[2] Download the linux-netscape-7.0 port as it existed on 2002.10.05

[3] Try "make".
>Fix:
Change the algorithm for finding files.  For example, if a list of needed files is already known, query each site for every file and checksum, accumulating the hits in a list.  Then download every file from that list before trying the next site.

Instead of relying on a static list of ftp sites that may or may not reflect actual file availability and network distance, maybe start off by sorting the possible ftp sites according to fastest connection or fewest-hops or (???).
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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