FreeBSD /etc/make.conf tuning

My lab’s network is deadly slow, so I want to tune MASTER_SITE_* in my /etc/make.conf to speedup port installation.
As shown in this article about fastest_site utility, the fastest_site utility is a simple way to make an effective /etc/make.conf. fastest_site finds a set of the fastest master sites among the servers defined in the ports collections.
# portinstall ports_mgmt/fastest_sites
# rehash
# fastest_sites > /usr/local/etc/ports_sites.conf
=> Checking servers for MASTER_SITE_GENTOO (49 servers)
=> Checking servers for MASTER_SITE_TCLTK (6 servers)
=> Checking servers for MASTER_SITE_GET_E (6 servers)
=> Checking servers for MASTER_SITE_EASYSW (5 servers)
=> Checking servers for MASTER_SITE_PERL_CPAN (19 servers)
… ( go lunch while it’s running :p )
# vi /etc/make.conf
.include “/usr/local/etc/ports_sites.conf”
And the fastest mirror will be chosen 🙂

コメントを残す