You are not logged in.

#1 2010-10-14 08:16:40

juster
Forum Fellow
Registered: 2008-10-07
Posts: 195

prankm - Parallel ping ranker for pacman's mirrorlist

A simple little script that ranks servers in a mirrorlist by pinging them in parallel. Takes about a second to rank my mirrorlist. You must be root because it can only send ICMP echo requests for pinging. With the --inplace option it will write back the ranked server list to the mirrorlist file you specify. If no file is specified it uses /etc/pacman.d/mirrorlist. Preserves grouping of servers done with one-line comment headers like countries.

prankm on AUR: http://aur.archlinux.org/packages.php?ID=41795

Usage:
      prankm [-i] [-n #] [-m #.#] [/etc/pacman.d/mirrorlist]

      Ranks the mirrorlist file. If a mirrorlist is not given as an
      argument then the default /etc/pacman.d/mirrorlist file is read.

      Options:
       -n | --num      The number of top ranked servers to use in file.
                       Set to 0 to use all servers. Default: 20
       -m | --max      Maximum delay to wait for pings, in seconds.
                       Default: 0.25
       -i | --inplace  Inplace editing, overwrite source file with results.
       -h | --help     This help screen.

Example use:

[juster@artemis prankm]$ sudo prankm -i
Defaulting to /etc/pacman.d/mirrorlist.

Wrote /etc/pacman.d/mirrorlist.
76/93 pings in 0.989 seconds.
[juster@artemis prankm]$

The summary displays ping responses received / pings sent.

Offline

Board footer

Powered by FluxBB