Torrent Invites - Get your free bittorrent tracker invitations! - Powered by vBulletin
Ad
Results 1 to 4 of 4
  1. #1

    Posts
    294
    Hey guys, In need of some help.

    To improve upload speeds I want to remove the hasing process for cross seeding in rtorrent. I remember reading somewhere about it but have had no luck finding it again.

    I do have access to the rtorrent configuration file.


    Thanks for help in advance guys.

    Last edited by WaZ901; 12-03-2009 at 11:14 PM.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Posts
    274
    I think what you might be looking for is a perl script named fast_resume.pl. It can be found here -> http://libtorrent.rakshasa.no/downlo...fast_resume.pl. What it does is create a new .torrent file from the original one, then you can load the new torrent without hashing the data files. Further info can be found here -> RTorrentCommonTasks – The libTorrent and rTorrent Project
    HTH.
    Last edited by scoobie; 12-04-2009 at 01:35 AM.

  4. #3

    Posts
    294
    Thanks for that scoobie. Is there anyway to do it by editing the .rtorrent.rc file to permanently remove auto hashing?

    Cheers

  5. #4

    Posts
    274
    There is a setting called 'check_hash = yes|no" that you can add in .rtorrent.rc but I think it only allows you to skip hashing files that are currently tied to an existing torrent which is normally found in the session directory. So if you try to load the same torrent downloaded from another tracker, it will still be hashed by rtorrent because there is no session file tied to that torrent yet.
    According to rtorrent's common task documentation, if you want to bypass hash-checking of data files you need to use a script called rtorrent_fast_resume.pl. So what I did is incorporate this perl script inside a bash script so it can be loaded in .rtorrent.rc. It's not a very elegant solution but I think it will work. Note that I have never tested the script yet.

    Requirements:
    Perl
    rtorrent_fast_resume.pl (Download here -> http://libtorrent.rakshasa.no/downlo...fast_resume.pl)
    Convert::Bencode module from CPAN (enter this command to install -> $perl -MCPAN -e 'install Convert::Bencode'), you'll probably need root access to install the binaries and dependencies.
    Add Below lines to your .rtorrent.rc.

    # Load torrents from watch folder every 5 seconds
    schedule = watch_directory,5,5,load_start=$HOME/rtorrent/watch/*.torrent

    # This line will execute the script "process_torrents" every 5 seconds
    schedule = exec_script,5,5,"execute=$HOME/process_torrents"

    ================================================== ==================================================

    Restart rtorrent
    Create a file in your home directory and name it process_torrents
    Copy and paste contents below into process_torrents
    Save
    chmod 700 process_torrents

    ================================================== ================================================== =


    #! /bin/bash
    for TORRENT_FILE in $HOME/rtorrent/watch2/*; do

    # Check for torrent files
    if [ -f "$TORRENT_FILE" ]; then

    # Create a semi-unique filename for the next torrent. Otherwise, rtorrent will untie first torrent
    # and then load next torrent. We want both torrents to be loaded.
    NEW_TORRENT_FILE="$HOME/rtorrent/watch2/$(basename "$TORRENT_FILE" .torrent).$RANDOM.torrent"

    # Original commandline parameter: $ rtorrent_fast_resume.pl [base-directory] < original.torrent > modified.torrent where
    # base-directory is the location of your torrent data directory
    $HOME/rtorrent_fast_resume.pl $HOME/rtorrent/data/ < "$HOME/rtorrent/watch2/$TORRENT_FILE" > "$HOME/rtorrent/watch/$NEW_TORRENT_FILE"

    rm -f "$TORRENT_FILE"
    fi
    done


    ================================================== ================================================== =

    Next, drop the torrent file downloaded from tracker A to $HOME/rtorrent/watch/ folder
    Wait until the data files have been fully downloaded
    Drop same torrent filename downloaded from trackers B,C,D,E etc. to $HOME/rtorrent/watch2 folder

Similar Threads

  1. Automatically generate torrents for cross seeding
    By dragnet in forum BitTorrent
    Replies: 0
    Last Post: 09-16-2011, 06:57 PM
  2. Problem cross-seeding with rTorrent
    By LateralNoise in forum Help
    Replies: 10
    Last Post: 06-22-2011, 01:51 PM
  3. Cross-seeding with rtorrent
    By rbm in forum Help
    Replies: 7
    Last Post: 07-28-2010, 06:05 AM
  4. Cross-Seeding for Dummies!
    By neverworld in forum Help
    Replies: 19
    Last Post: 07-08-2009, 08:38 AM
  5. Cross seeding concerns
    By Hakeem in forum BitTorrent Discussion
    Replies: 3
    Last Post: 09-06-2008, 08:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •