Hey,
After a few days of investigating high load on servers running ruTorrent that I set up, I think I found the problem.
Details:
XenServer Host, below was in the VMs.
rTorrent 8.6 (Discovered with 8.8, research done with 8.6)
libTorrent 12.6 (Discovered with 12.8, research done with 12.6)
XMLRPC-C Latest SVN
ruTorrent Latest SVN
ruTorrent Plugins Latest SVN
Debian 6 - 2.6.32-5-amd64
lighttpd + FastCGI w/ php5-cgi (All from repos)
Issue:
When adding a torrent, load on my 3 core 3GB RAM VM would jump to around 40%. Even without the torrent downloading, adding it paused caused the load to go to 40%. Load was under %sy and %us mainly.
The temporary solution was "killall php5-cgi", this would drop the load back to around 0% for the idle rtorrent/server. If I added another torrent (watch dir or through rutorrent) the load would again increase to 40% and stay there, but not until I added another torrent.
The load did not go down over time. A friend's server that I was testing on had been running for 3 days at 40% load with 1 torrent in rTorrent.
A strange part is that none of the processes in "top" will be using a large percentage of cpu, the php5-cgi process will appear to be using only 1% of the cpu, but the total usage is 40% and nothing else is using it.
Here is an example after adding 1 torrent, the torrent was added stopped.
Cpu(s): 12.6%us, 16.7%sy, 0.0%ni, 67.9%id, 1.4%wa, 0.0%hi, 0.2%si, 1.2%st
And here is after running "killall php5-cgi".
Cpu(s): 0.9%us, 0.7%sy, 0.0%ni, 97.2%id, 0.9%wa, 0.0%hi, 0.0%si, 0.1%st
Research:
I thought it might be my dedicated server, so I got a new one that had VT support, and new (to me) everything else. Issue was still there. Reinstalled XenServer multiple times for testing, also reinstalled the Debian VMs many many times.
Tried different versions of libtorrent and rtorrent too.
Some of the behaivor pointed me to the plugins, so I just deleted everything in rutorrent/plugins, after doing this adding torrents no longer created the load. After some trials I narrowed it down to autotools. After removing autotools I get this after adding a torrent:
Cpu(s): 0.4%us, 0.2%sy, 0.0%ni, 97.6%id, 1.7%wa, 0.0%hi, 0.1%si, 0.1%st
Final Thoughts:
I'll submit this as an issue in a little while, but I'm doing a little more research before I do that. (I read the forum rules.)
Posting here in case there are others experiencing this.
After a few days of investigating high load on servers running ruTorrent that I set up, I think I found the problem.
Details:
XenServer Host, below was in the VMs.
rTorrent 8.6 (Discovered with 8.8, research done with 8.6)
libTorrent 12.6 (Discovered with 12.8, research done with 12.6)
XMLRPC-C Latest SVN
ruTorrent Latest SVN
ruTorrent Plugins Latest SVN
Debian 6 - 2.6.32-5-amd64
lighttpd + FastCGI w/ php5-cgi (All from repos)
Issue:
When adding a torrent, load on my 3 core 3GB RAM VM would jump to around 40%. Even without the torrent downloading, adding it paused caused the load to go to 40%. Load was under %sy and %us mainly.
The temporary solution was "killall php5-cgi", this would drop the load back to around 0% for the idle rtorrent/server. If I added another torrent (watch dir or through rutorrent) the load would again increase to 40% and stay there, but not until I added another torrent.
The load did not go down over time. A friend's server that I was testing on had been running for 3 days at 40% load with 1 torrent in rTorrent.
A strange part is that none of the processes in "top" will be using a large percentage of cpu, the php5-cgi process will appear to be using only 1% of the cpu, but the total usage is 40% and nothing else is using it.
Here is an example after adding 1 torrent, the torrent was added stopped.
Cpu(s): 12.6%us, 16.7%sy, 0.0%ni, 67.9%id, 1.4%wa, 0.0%hi, 0.2%si, 1.2%st
And here is after running "killall php5-cgi".
Cpu(s): 0.9%us, 0.7%sy, 0.0%ni, 97.2%id, 0.9%wa, 0.0%hi, 0.0%si, 0.1%st
Research:
I thought it might be my dedicated server, so I got a new one that had VT support, and new (to me) everything else. Issue was still there. Reinstalled XenServer multiple times for testing, also reinstalled the Debian VMs many many times.
Tried different versions of libtorrent and rtorrent too.
Some of the behaivor pointed me to the plugins, so I just deleted everything in rutorrent/plugins, after doing this adding torrents no longer created the load. After some trials I narrowed it down to autotools. After removing autotools I get this after adding a torrent:
Cpu(s): 0.4%us, 0.2%sy, 0.0%ni, 97.6%id, 1.7%wa, 0.0%hi, 0.1%si, 0.1%st
Final Thoughts:
I'll submit this as an issue in a little while, but I'm doing a little more research before I do that. (I read the forum rules.)
Posting here in case there are others experiencing this.