You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ktorrent/estimation-scripts
Timothy Pearson 42a9872891
Revert "Rename a number of old tq methods that are no longer tq specific"
13 years ago
..
EstimationResults.rb Updated to final KDE3 ktorrent release (2.2.6) 15 years ago
Estimators.rb Updated to final KDE3 ktorrent release (2.2.6) 15 years ago
README Rename KDEHOME and KDEDIR 13 years ago
Sample.rb Updated to final KDE3 ktorrent release (2.2.6) 15 years ago
demo.rb Updated to final KDE3 ktorrent release (2.2.6) 15 years ago
enable-logging.diff Revert "Rename a number of old tq methods that are no longer tq specific" 13 years ago
processlog.rb Updated to final KDE3 ktorrent release (2.2.6) 15 years ago

README

Introduction
============

This directory contains patches and scripts for my experiments regarding download time estimation 
algorithms, using KTorrent for gathering data ;-)

Files
=====

enable-logging.diff - Patch to apply to enable logging download stats once per second to $TDEHOME/share/apps/ktorrent/log (by Ivan). Apply it if you want to help collecting test cases.

processlog.rb - extracts logs for single torrents from $TDEHOME/share/apps/ktorrent/log and stores them in $FILENAME-torrent.log

Sample.rb - class representing a sample, does the parsing (given a line from adjustTimestmaps output)

Estimators.rb - Some basic estimators, for estimation based on current speed, average speed and moving average speed.

EstimationResults.rb - Calculates and holds the estimation results of an estimator, including statistics such as relative error for each estimation, root mean square error and the like

What to do
==========

1) Apply the patch: In torrent/ dir, apply it via 
  
  cat enable-logging.diff | patch -p0

2) Run ktorrent and download torrents. When completed, run processlog.rb:

  ruby processlog.rb $TDEHOME/share/apps/ktorrent/log

Extracted logs end up in $TORRENTFILENAME-torrent.log. ATTENTION: existing files are overwritten!

4) Now, analyze the -adjusted file with a ruby script, using Sample.rb, Estimators.rb, and EstimationResults.rb...  ;-)
I will upload something useful as soon as finished.


Frank Osterfeld, <frank.osterfeld at kdemail.net>