mcmanuf
Posts: 44
Joined: Wed Aug 22, 2012 12:29 am

Re: Torrent server

Wed Oct 24, 2012 9:01 pm

SawaFish wrote:
paxrex wrote:What image are you using? I remember that latest Raspbian image have some USB fix, can't remember exactly. This USB fix should improve performance.
I'm using Raspbian 3.2.27+. While setting the max memory fixed the crashing, rTorrent couldn't hash files anymore due to a lack of memory. But the torrent to be hashed was a lot smaller than the allocated memory. I'm now using Transmission and it works very well. So I can recommend the RPi for use as a torrent seedbox. Just keep in mind that the speed (especially downloading) is limited due to the USB bus. However, I've downloaded at 2 MB/s without any problems.
Do you not experience the pi keep freezing and the download speed fluctuating like crazy? Or have you made some special settings? Try looking at htop while downloading and see how transmission behaves!

SawaFish
Posts: 9
Joined: Mon Oct 22, 2012 10:15 pm

Re: Torrent server

Wed Oct 24, 2012 9:18 pm

mcmanuf wrote:Do you not experience the pi keep freezing and the download speed fluctuating like crazy? Or have you made some special settings? Try looking at htop while downloading and see how transmission behaves!
Since switching from rTorrent to Transmission the pi has not frozen a single time. I've not monitored the pi while downloading but the few times I looked at the active processes with 'top' it looked normal. The cpu load was low and the main bottleneck seemed to be the wait for use of the USB bus. I've set a download limit at 2MB/s and max 2 torrents downloading to limit the strain on the pi. I've downloaded several GB over tens of torrents without any problems up till now.

mcmanuf
Posts: 44
Joined: Wed Aug 22, 2012 12:29 am

Re: Torrent server

Thu Oct 25, 2012 9:14 pm

SawaFish wrote:
mcmanuf wrote:Do you not experience the pi keep freezing and the download speed fluctuating like crazy? Or have you made some special settings? Try looking at htop while downloading and see how transmission behaves!
Since switching from rTorrent to Transmission the pi has not frozen a single time. I've not monitored the pi while downloading but the few times I looked at the active processes with 'top' it looked normal. The cpu load was low and the main bottleneck seemed to be the wait for use of the USB bus. I've set a download limit at 2MB/s and max 2 torrents downloading to limit the strain on the pi. I've downloaded several GB over tens of torrents without any problems up till now.
I didn't mean freeze as in unplug the pi and reconnect it. I meant freeze as unresponsive for a couple of seconds before coming to life. This is what I experience from having transmission running.
Also I have discovered that it starts by using only 2.1% memory, but increases to 15-16% after starting a torrent. Afterwards it will STAY at 15-16% memory usage even though all torrent files has been removed from the program. I believe it is a memory leak. Any chance someone being able to build a deb package of newest transmission 2.73 instead of the current 2.52 version to see it that fixes some issues?
Also you say the USB bus is the bottleneck. Well im NOT using the usb bus in the testing phase. Ethnernet->pi->SD-card.
Still i have crazy fluctuating speeds. This is most visible after a maybe a minute or so of downloading. Then it starts fluctiuating like cracy, and you will see that its cpu usage is 0.0% when its fluctiating. Like transmission daemon is put on hold or on pause for a few seconds for the Pi to do someting else!

DQV69
Posts: 1
Joined: Fri Oct 26, 2012 6:37 am

Re: Torrent server

Fri Oct 26, 2012 6:49 am

I every one,
I'm new in the raspberry pip experience.
I try to replace my actual home server with my new raspberry, but i've got somme issues.
I'd like to use a proxy a web server and a torrent client.
The 2 first server works fine, but the third gave me some problems.
I try rtorrent (like in my old one) and transmission.
But whith the tow i 've got some freeze, or some not responding time.
when i look top, i've got usb-storage who' on top ;-)
I've seen that the USB bus was a problem with the board architecture.
My configuration is :
power supply : 5V 1A
OS debian, kernel 3.2.27
cmdline : dwc_otg.lpm_enable=0 sdhci-bcm2708.enable_llm=1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait smsc95xx.turbo_mode=N
Drive : 64 Go USB flash drive Corsair.
Maybe i miss something ? Is someone can help me ?
Thx.

mikecy
Posts: 4
Joined: Wed Nov 14, 2012 8:36 am

Re: Torrent server

Wed Nov 14, 2012 8:44 am

Hello guys.Is there a solution for the download speed fluctuating?After 2 days seeding and downloading i had no freeze but still the download is fluctuating.Also when i transfer a movie for 1tb hard disk connected to rpi to my pc through ethernet the speed is too low.Under a 1mb/s.With my freenas server all was fine.

maskiopt
Posts: 5
Joined: Sat Oct 06, 2012 12:28 pm

Re: Torrent server

Tue Nov 20, 2012 9:29 pm

Hello.
I'm using transmission daemon with flexget and its working good, I can't seem to have speeds above 150kbps but thats not my main issue.

I'm currently saving my download do the SD card but what I want and haven't being able to do is to save the download do a SMB folder wich is something like "smb://share/downloads". This folder is accessible to all the network with read and write permissions. The problem is that when I set this folder as the torrent destination, transmission says it doesn't have permission to write on it.
What am I missing?

SawaFish
Posts: 9
Joined: Mon Oct 22, 2012 10:15 pm

Re: Torrent server

Wed Nov 21, 2012 10:26 am

maskiopt wrote:Hello.
I'm using transmission daemon with flexget and its working good, I can't seem to have speeds above 150kbps but thats not my main issue.

I'm currently saving my download do the SD card but what I want and haven't being able to do is to save the download do a SMB folder wich is something like "smb://share/downloads". This folder is accessible to all the network with read and write permissions. The problem is that when I set this folder as the torrent destination, transmission says it doesn't have permission to write on it.
What am I missing?
Have you tried setting the owner to 'debian-transmission'? In my experience if the owner isn't debian-transmission then it won't work. Can you succesfully change the download folder to a random directory on your SD card to check if the problem is with SMB or with Transmission.

maskiopt
Posts: 5
Joined: Sat Oct 06, 2012 12:28 pm

Re: Torrent server

Fri Nov 30, 2012 3:04 pm

I was using debian-transmission as user and I was getting permition denied.
Now I use "root" and I can access the smb share but when the download is finished I cant find the item in that smb folder. However, in the web interface it shows as 100% complete on that folder.

I don't remember anything else to do to fix this

ibsooraj
Posts: 1
Joined: Thu Dec 06, 2012 4:47 am

Re: Torrent server

Thu Dec 06, 2012 4:52 am

Hi, Transmission daemon is stopping xbmc to start. Could you advice how to stop transmission daemon on start up?

maskiopt
Posts: 5
Joined: Sat Oct 06, 2012 12:28 pm

Re: Torrent server

Sat Dec 08, 2012 2:46 am

Hi again.
I still cant save my torrents to a samba network folder so I'm downloading directly to the SD card and transmission-daemon is crashing randomly. Is it bad to download to the sd card?
Can anyone point me how to mont a smb network folder on the pi on boot? I can't seem to do it right but xbmc (im runing raspbmc) can access that smb share with no problem.

l0rdraiden
Posts: 5
Joined: Fri Oct 19, 2012 3:45 pm

Re: Torrent server

Mon Dec 10, 2012 3:25 pm

I have seen that there are still some problems using raspberry pi as a seedtorrent.
Although I still don't have a raspberry pi, I have been collecting information related with raspberry pi and seedbox. I hope that someday somebody with enough knowledge will publish an ultimate guide to use raspberry as a seedbox

RPi Projects/R-Pi Seed Field - eLinux.org
http://elinux.org/RPi_Projects/R-Pi_Seed_Field

Convierte tu Raspberry Pi en un pequeño SeedBox para descargas con BitTorrent | Incognitosis
http://www.javipas.com/2012/09/18/raspb ... ittorrent/

Script for automated rtorrent installation with rutorrent for Ubuntu 10.04! - Ubuntu Forums
http://ubuntuforums.org/showthread.php? ... &t=1652105

Raspberry Pi • View topic - Torrent server
http://www.raspberrypi.org/phpBB3/viewt ... &start=150

Debian User Forums • View topic - Make a Debian GNU/Linux seedbox with rtorrent and screen
http://forums.debian.net/viewtopic.php?f=16&t=54670

rTorrent: configuración y uso | Aquí yace el root - El blog personal de @alerom
http://aquiyaceelroot.com/rtorrent-configuracion-y-uso/

How to Install rTorrent/ruTorrent on Debian/Ubuntu VPS - Web Hosting Talk
http://www.webhostingtalk.com/showthread.php?t=1124849

Raspberry Pi • View topic - Automontar HDD Usb para transmission
http://www.raspberrypi.org/phpBB3/viewt ... 76&t=20124

Gazman Development: Raspberry Pi Initial Setup
http://gazman-development.blogspot.co.u ... setup.html

RaspbianInstaller - Raspbian
http://www.raspbian.org/RaspbianInstaller

A fan for the RPi
http://n.ethz.ch/~vdeschwb/_dev_null/_r ... e_RPi.html

RPi Cases - eLinux.org
http://elinux.org/RPi_Cases

Raspberry Pi • View topic - How to enable zram on Raspbian Wheezy?
http://www.raspberrypi.org/phpBB3/viewt ... 5&p=189838

Biz’s LEGO case – the Boreatton Scouts hit Germany. | Raspberry Pi
http://www.raspberrypi.org/archives/1354

- eXtremeSHOK.com Blog
http://blog.extremeshok.com/debian/rasp ... ory-usage/

How2SetUp remote access to a Raspberry Pi computer - Simon The Pi Man
http://www.simonthepiman.com/how_to_set ... access.php

RaspbianFAQ - Raspbian
http://www.raspbian.org/RaspbianFAQ

Seedbox DIY Guide - make your own seedbox for cheap
http://www.diyseedbox.com/

How2Setup a Raspberry Pi for safe connection to the Internet - Simon The Pi Man
http://www.simonthepiman.com/how_to_set ... ternet.php

RPi Easy SD Card Setup - eLinux.org
http://elinux.org/RPi_Easy_SD_Card_Setup

Transmission Seedbox: Creating a Seedbox in CentOS 6
http://transmissionseedbox.blogspot.co. ... tos-6.html

Turn your Raspberry Pi into a media server and seedbox with Samba and Transmission. Part 2: Transmission | robcaw.com
http://robcaw.com/2012/06/turn-your-ras ... ox-part-2/

Ubuntu 12.04 LTS Dedicated Server rTorrent and ruTorrent Installation Tutorial
http://www.torrent-invites.com/seedbox- ... orial.html

Easy ruTorrent installer + Web server, FTP, Webmin (Ubuntu/Debian/Fedora/More) - Knowledgebase - What The Server
http://whattheserver.me/billing/knowled ... icle&id=38

Dedicated server /Kimsufi /OVH /Seed box setup - Rutorrent, Autodl-irssi, ZNC, Ubuntu
http://www.torrent-invites.com/seedbox- ... buntu.html

How to attach and configure an external hard-disk to RasPi and share it over network
http://www.megaleecher.net/Adding_Exter ... e_On_RasPi

beatmag
Posts: 25
Joined: Sun Apr 22, 2012 5:28 am

Re: Torrent server

Mon Dec 10, 2012 10:29 pm

I'm stilling getting the:
smsc95xx 1-1.1:1.0: eth0: kevent 2 may have been dropped
and also the could not allocate memory for Transmission daemon.


I have the settings already:
set vm.min_free_kbytes to 16384
smsc95xx.turbo_mode=N
4gb swap on usb hd


Anyone else got this?
Any other fixes to apply?

I was building transmission 2.73 yesterday and it did build successfully.
But I want to fix the out of memory issue first....before upgrading.

lordbone
Posts: 4
Joined: Sun Dec 30, 2012 1:06 am

Re: Torrent server

Sun Dec 30, 2012 1:37 am

Hi there,

I'm also having some trouble with transmission and raspberry. My setup is as follows:
- Raspberry PI running Raspbian Wheezy (from http://www.linuxsystems.it/2012/06/rasp ... mal-image/ minimal with hard-float)
- Zyxel NSA320 as external network storage ( http://www.zyxel.com/products_services/nsa320.shtml?t=p ) with a large hard-disk.

Since the Zyxel NAS has a maximum limit of 10 active torrents at a time (not 10 concurrent downloads, 10 active torrents period), and since I am using flexget to automatically download feeds, I have to make use of the ol' raspberry for downloading torrents.

I've already been through this post and am now using the latest firmware, with a custom kernel config (based off a kernel image found here, something 3.2.27+, configured by me, removed all the sound, video, usb drivers for plug&play stuff, the usual when you want to run a headless server), and am encountering random freezes while transmission is downloading.

I've put download limits from transmission to 32 mbits, and the random freezes became less frequent, but am still encountering this when downloading large torrents (an 9 gig torrent dies at about 3-4 gbit downloaded).

I've also been watching what happens at many levels (bandwidth, ram usage, processor usage, etc). During a download, the processor is usually @ 60-70% usage (which I find normal), has random spikes to 100% (I'll get to that in a moment), ram usage is at 100% all the time (usually 60-70% are buffers and caches), and on the network layer, I see it downloading constantly, and once every 3-4 seconds I see it flushing data to the NAS at max bandwidth (usually 50-60 mbits - this is when the processor spikes to 100%).

The NAS hard-disk is mounted with CIFS, and I've enabled CIFS support straight into the kernel, I don't have any aditional modules loaded.

I'm suspecting that some kind of buffer overflow happends, probably transmission is having difficulties flushing to the NAS while the buffer keeps filling up, and eventually crashes.

Don't get me wrong, when it crashes, it crashes, no more icmp replies, no more arp replies, it just halts. I'm running it headless so there's no video output to analyze. One time I've waited for 2 hours to see if it comes back to life, but no such luck. Only thing I can do is a hard reboot.

I've had these crashes all the time, that's the reason for the firmware upgrade, kernel recompile, and so on.

Any1 got any clue what's happening ? I'm guessing it's a memory problem, but I have no evidence yet. Going to try limiting transmission's memory usage with ulimit and see what happends. I've also decreased buffers-size in transmissions settings to 1 mbit, to see what happends.

And not to forget the versions, I am running kernel 3.2.27 pulled from raspberry-pi's github and built with my own custom config, and Transmission 2.52 (13304) installed from repo.

Cheers,

lordbone
Posts: 4
Joined: Sun Dec 30, 2012 1:06 am

Re: Torrent server

Wed Jan 09, 2013 3:21 pm

Well it seems I somehow fixed it. The problem was indeed a memory problem. I am now running the 3.6.11+ kernel (installed via rpi-update), with transmission-daemon 2.75 (compiled from source, 2.52 from repo also works).

I have the following config:
In /etc/sysctl.conf I have:

Code: Select all

vm.min_free_kbytes=65536
vm.drop_caches=3
Out of no particular reason, if the system memory goes under 64mb of free ram, it crashes, therefore I had to set min_free_kbytes to 64 mb (65536 kb).

Also I had a problem with the caches not being cleared (main reason why my PI kept crashing). I don't know if there's any point in having persistent drop_caches in sysctl (I think it only clears caches when first executed), but I've also included it.

Also in transmission's settings.json, I've set

Code: Select all

"cache-size-mb": 0
so that it won't cache up the remaining ram.

With this setup I've reached "6 days, 17:41" hours of uptime with an average of 60 torrents seeding and a new torrent for download added every few hours. Download and upload speeds have been limited to 60 mbps, didn't want to clog up the network.

Good luck.

vinsang
Posts: 1
Joined: Wed Sep 26, 2012 10:45 pm

Re: Torrent server

Sat Feb 16, 2013 2:56 pm

maskiopt wrote:Hello.
I'm using transmission daemon with flexget and its working good, I can't seem to have speeds above 150kbps but thats not my main issue.

I'm currently saving my download do the SD card but what I want and haven't being able to do is to save the download do a SMB folder wich is something like "smb://share/downloads". This folder is accessible to all the network with read and write permissions. The problem is that when I set this folder as the torrent destination, transmission says it doesn't have permission to write on it.
What am I missing?
Hi,

sudo apt-get install ntfs-3g
then set the type to ntfs-3g in fstab.
worked perfectly for me.

JVM
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am

Re: Torrent server

Wed Mar 06, 2013 5:53 am

I'm getting the fluctuating speeds as well where it is near maxing out my connection at 600kB/s for a few mins then to 0 and so on. I don't get any freezing and the pi is stable. I'm currently running 2013-02-09-wheezy-raspbian and qbittorrent-nox. I've updated firmware and the kernel, set "vm.min_free_kbytes" to 16384 and added "smsc95xx.turbo_mode=N", tried setting the priority of qbittorrent with ionice and tried all this on the 2 minimal images from http://www.linuxsystems.it/

I'm not sure what else can I try? Reading this thread seems like it is possible to get stable speeds.

bugahdug
Posts: 4
Joined: Thu Jun 14, 2012 9:45 am

Re: Torrent server

Thu Mar 07, 2013 1:14 pm

I was previously having problems with this. So far it seems to be okay now.

I was previously using a apple style usb 5v 1a plug, I have now switched to a samsung phone charger one of the same 5v 1a, hoping this may be more stable over time. I also changed the usb lead to power the pi as i noticed when i plugged in my HDD, the lights dimmed a very tiny amount.

My HDD is as follows: WD 80GB 12v - 750ma~, 5v - 350ma~

So my two separate plugs should be sufficient for testing before i move them over to the solar setup.

I added the boot command line options,
doubled the vm.cache size from the original 8mb,
changed my settings in transmission to write to disk at 64mb
limited my download speed to 150kbs in transmission
disabled the temporary download directory in transmission, it writes straight to the HDD
limited my downloads to 1 at a time (will be trying 2 soon)

Now been on for 1 hour, rather than about 5 mins before i had IO errors.


htop says 15% average on cpu and 160mb ram used on my pi (revision 2)
the ram does appear to be slowly creeping up though, half hour ago it was around 130mb

theone
Posts: 5
Joined: Sat May 04, 2013 11:26 pm
Location: Ljubljana, Slovenia

Re: Torrent server

Sat May 04, 2013 11:40 pm

Here's the solution that worked for me :

i went to :

Code: Select all

sudo nano /etc/fstab
and added big_writes to the line that is for my external HDD

Code: Select all

/dev/sdb1        /path_to_mount_point/          ntfs       defaults,big_writes       0            2
When downloading torrents altrough CPU goes to 60% (mount.ntfs is around 40% of that number) I have no more speed drops and now it has been more than 1 hour working OK.... My speed is around 1.1 MB/s with my bandwith being 10/1Mbit

I am using latest official Raspbian

spiffomatic64
Posts: 4
Joined: Sun May 19, 2013 4:19 pm

Re: Torrent server

Sun May 19, 2013 4:29 pm

running xbian alpha 5

with the following changes

remove sync from /etc/usbmount/usbmount.conf and add big_writes
add sync to fstab
sudo apt-get update
sudo apt-get upgrade
transmission settings.json "cache-size-mb": 0
/etc/sysctl.conf vm.min_free_kbytes=65536, vm.drop_caches=3
cmdboot.txt smsc95xx.turbo_mode=N

No crashes just yet... but seeing wild fluctuations of speed
Image

Im connected to a couple of well seeded private torrents that I typically saturate my 50mb network immediately...

I had previously had a couple crashes that killed my install. (rasperrypi non-responsive, full power cycle wouldn't give me anything on screen or on the network, connected composite cable and got a "rainbow flash" but no sd activity)

So I would reinstall the OS from a backup and try some other settings.

Ive also been getting a few transmission crashes, im currently running it with -f to monitor any logs, will post back with any more info there.

Ive been following the talks here https://github.com/raspberrypi/firmware/issues/9 that seem related...

Has any other headway been made with this issue?

markmtc
Posts: 3
Joined: Mon Jun 18, 2012 10:03 am

Re: Torrent server

Mon Jun 03, 2013 9:13 pm

My raspberry pi is the first rev. (256 Mb RAM) and I've tried all the tricks posted to prevent kernel panic without getting results. I've gotten a 3A power supply and I connected to power GPIO pins 1 and 3. The voltage between tp1 and tp2 5v is accurate and I have not have a single kernel panic, even forcing network and disk traffic.
I say this because there are still people who have not gotten used transmission without kernel panics.

HJ200
Posts: 1
Joined: Thu Sep 05, 2013 7:57 am

Re: Torrent server

Thu Sep 05, 2013 8:28 am

My pi froze with the same symptoms, but in my case it kept freezing because CIFS got memory errors on my samba share (which contained the torrent files). For a long time it seemed like Transmission-daemon was running out of memory, but eventually it was CIFS ;) So here's my /etc/fstab for the people who use samba as a share to write torrent files to.

My fix was to add directio to the arguments;

//192.168.1.17/MyHDD /media/MyHDD cifs workgroup=WORKGROUP,guest,gid=169,uid=169,file_mode=0777,dir_mode=0777,rw,noperm,directio 0 0

Where 169 is the user id of the transmission user.

User avatar
aka399
Posts: 59
Joined: Tue Aug 07, 2012 3:15 pm

Re: Torrent server

Fri Apr 25, 2014 1:55 pm

dear all,
quiet similar problem here. I suppose that, when RPI is downloading two or more torrent at same time, I got hi chances to go down.
I'm testing with one download at time and seems to be ok. how to configure transmission daemon for do that automatically? e.g.: I start all the torrent in queue but it have to download only one and, once finish, start with second etc.
tnx
EDIT: found this fix http://stevenhickson.blogspot.it/2012/1 ... ashes.html, no pronbelm for the fist day.

ungureanub
Posts: 3
Joined: Tue Jan 19, 2016 10:06 am

Re: Torrent server

Tue Jan 19, 2016 1:47 pm

Was this problem solved? Why there is no reply since one year? :cry:


Unfortunelly I have the same problem with my Rpi2 and transmission.
Here is my usecase:
- I'm downloading only one file to an external USB flash drive (ext4).
- my connection is 3Mbit/1Mbit.
- the connection is stable and with the PC I do not get any problem.

The result is that Transmission-daemon on my Rpi2 is not downloading with a stable speed. It goes to full speed for a second or two and then to 0 for few seconds. So Up and Down, Up and Down.
I see this in my Router web interface who is drawing the current up/down speeds.
In the time when there is no download, the transmission-daemon is not responding to any command (RPC).

With "htop" i see that the cores are not doing anything and that there is enough memmory free.
When is downloading (with full speed), I see that CPU gets to 20%-25% for a while.

I've searched a lot, but all the threads end with no result.
Any idea? What am I missing?

Return to “Networking and servers”