WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Mirror picker - call for testing  (Read 2755 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Mirror picker - call for testing
« on: July 13, 2012, 02:32:05 AM »


I've made a small app to determine the fastest mirror from your location. This should help the complaints on download speeds if (asked to) pop up on first launch of (scm)apps.

Please help test it to see whether it's correct from your location. The binary is up to date, so you can just download that if you don't want to load compiletc.

http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/src/mirrorpicker/
The only barriers that can stop you are the ones you create yourself.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: Mirror picker - call for testing
« Reply #1 on: July 13, 2012, 06:50:38 AM »
the result for me is the greek mirros but I think it's better to delete it since it has a very old repo
dCore user

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Mirror picker - call for testing
« Reply #2 on: July 13, 2012, 07:04:39 AM »
Result is varying. Running it 10 times I got three sites, 60% ftp.vim.org 30% ftp.nluug.nl, 10% a .edu

5 minutes later 100% is ftp.nluug.nl the winner.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Mirror picker - call for testing
« Reply #3 on: July 13, 2012, 07:33:39 AM »
...which makes sense as ftp.vim.org and ftp.nluug.nl basically resolve to same IP's ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Mirror picker - call for testing
« Reply #4 on: July 13, 2012, 07:35:34 AM »
Mirrors do vary in speed a bit, so that part's natural. Probably a good time to update the extension from the wiki, will do that soon.

edit: Updated. Now at 15 mirrors with the greek ones removed.
« Last Edit: July 13, 2012, 07:50:37 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Mirror picker - call for testing
« Reply #5 on: July 14, 2012, 03:24:45 AM »
Over a period of one hour:
30% ibiblio
40% vim
40% nluug

Setting mirror when offered also works OK.

An idea, how about adding an option to (SCM)Apps in addition to the existing option "Select Mirror".  It might work such that the fastest mirror is automatically scanned for and selected prior to a download.  Retaining the existing "Select Mirror" option will also allow users who prefer to use a specific mirror to do so.
   

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Mirror picker - call for testing
« Reply #6 on: July 14, 2012, 04:07:02 AM »
Yep, there should be an option to manually launch this in addition to popping it up at first use.

As for selecting a mirror automatically, I think that giving a choice like the app currently does is preferable. It's not much overhead, and it would be more user friendly.
« Last Edit: July 14, 2012, 04:09:12 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Mirror picker - call for testing
« Reply #7 on: July 14, 2012, 05:15:26 AM »
...and it would be more user friendly.
Not suggesting that this is the only way to do it, but it is what I had in mind.

To the list of sites in mirrors.tcz, a further (standard) entry could be added.  Something along the lines of "Use Fastest Available Mirror". 

As is presently the case, a user could choose any entry.   
  • Selecting a specific site will download only from that site
  • Selecting "Use Fastest Available Mirror" will (before each download session) automatically scan, select and download from the fastest site
To me this is quite a friendly way to do it.
   


Edit
improve clarity
« Last Edit: July 14, 2012, 05:18:48 AM by SamK »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Mirror picker - call for testing
« Reply #8 on: July 18, 2012, 11:54:32 AM »
That would work too, but it'd complicate the code more (having to check for this special string after picking) than adding a menu item.
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Mirror picker - call for testing
« Reply #9 on: July 18, 2012, 01:01:33 PM »
How are you determining mirror speed?
Ping delays are not a good indication of file transfer speed.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Mirror picker - call for testing
« Reply #10 on: July 19, 2012, 12:49:45 AM »
I download the info.lst.gz file and measure that speed.

It's still a small file to not to harm the mirrors, but should be better indicative of the speed.
The only barriers that can stop you are the ones you create yourself.