One part that really makes The Pirate Bay very efficient is their torrent tracker software. Unlike Python and PHP implementations, theirs is written in C, with very little dependencies. It's called OpenTracker — <a href="http://erdgeist.org/arts/software/opentracker/" rel="nofollow">http://erdgeist.org/arts/software/opentracker/</a>. It's intended to run on a WLAN router; it's <i>that</i> efficient. Especially see the "Philosophy" section :)<p>Of course, other projects can also use this for very legal purposes. E.g. my <a href="http://driverpacks.net" rel="nofollow">http://driverpacks.net</a> project uses torrents for distributing (legal!) downloads to avoid expensive server bills. The infrastructure is simple: a central OpenTracker instance, plus a few seedboxes (±$15/month) that get new files via rsync (to guarantee each file always has seeders), and voila: terabytes per day of traffic at ±$1/day.
Live stats at <a href="http://driverpacks.net/stats" rel="nofollow">http://driverpacks.net/stats</a> — powered by <a href="http://drupal.org/project/opentracker" rel="nofollow">http://drupal.org/project/opentracker</a>.<p>Hopefully this is useful for somebody :)