BitTorrent (B. Cohen's version)

From HCL
Revision as of 12:27, 13 December 2011 by Kiril (talk | contribs)

Jump to: navigation, search

The modified bittorrent tarball is currently under the MPIBlib repository:

svn co

  • Extract this under your home directory
    • You might need
 mv $HOME/lib/python $HOME/lib/python2.6
  • export following variables to tweak the way Python paths are searched:
 export PYTHONPATH=/usr/lib/python2.6/
  • Modify logfile path in /home/kdichev/lib/python2.6/BitTorrent/ and create according directory structure
  • Create a file of any size consisting of "s" characters only.
  • Create torrent file:
 btmakemetafile myfile.ext http://<frontend on G5K>:6969/announce
 bttrack --port 6969 --dfile dstate
  • Book nodes interactively:
 qsub -I -lnodes=...
  • Start one client that has the full copy
 ssh <one-node> btdownloadheadless --url{torrent file} &
  • On all other nodes, launch the client at the same time:

 cd /tmp ;  btdownloadheadless --display_interval 100 --url{torrent file}

 mpirun -n 14 --machinefile hostfile  $PWD/