On Tue, 13 May 2014, Stuart Henderson wrote: > On 2014/05/13 10:56, David Coppa wrote: > > > > I've received too much reports (last one from bentley@) about this > > being practically unusable. > > > > So, stop fooling the users and mark these ports BROKEN. > > transmission is better! > > an alternative diff ;-) > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/net/rtorrent/Makefile,v > retrieving revision 1.43 > diff -u -p -r1.43 Makefile > --- Makefile 21 Apr 2014 21:46:23 -0000 1.43 > +++ Makefile 13 May 2014 12:22:58 -0000 > @@ -7,9 +7,9 @@ BROKEN-sh = undefined references to __s > COMMENT= ncurses BitTorrent client based on libTorrent > > DISTNAME= rtorrent-0.8.9 > -REVISION= 1 > +REVISION= 2 > EPOCH= 0 > -CATEGORIES= net > +CATEGORIES= net benchmarks > > HOMEPAGE= http://libtorrent.rakshasa.no/ > > > seriously, enough people seem to find it useful to be worth keeping, > but I think it does warrant a note in DESCR.
The note is already into pkg/README: >$ cat pkg/README $OpenBSD: README,v 1.3 2011/10/11 15:09:51 naddy Exp $ +----------------------------------------------------------------------- | Running ${FULLPKGNAME} on OpenBSD +----------------------------------------------------------------------- Note that rTorrent has hash performance issues on BSD systems. Please refer to these links for further information: * http://libtorrent.rakshasa.no/wiki/RTorrentPerformanceTuning An example configuration file has been installed in ${TRUEPREFIX}/share/examples/rtorrent. It may serve as a starting point for tweaking rTorrent performance. What about the diff below? After careful googling, those seem to be the values most people out there are using on {Free,Open}BSD systems... Ciao! David Index: Makefile =================================================================== RCS file: /cvs/ports/net/rtorrent/Makefile,v retrieving revision 1.43 diff -u -p -u -p -r1.43 Makefile --- Makefile 21 Apr 2014 21:46:23 -0000 1.43 +++ Makefile 22 May 2014 07:24:42 -0000 @@ -7,7 +7,7 @@ BROKEN-sh = undefined references to __s COMMENT= ncurses BitTorrent client based on libTorrent DISTNAME= rtorrent-0.8.9 -REVISION= 1 +REVISION= 2 EPOCH= 0 CATEGORIES= net Index: patches/patch-doc_rtorrent_rc =================================================================== RCS file: patches/patch-doc_rtorrent_rc diff -N patches/patch-doc_rtorrent_rc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-doc_rtorrent_rc 22 May 2014 07:24:42 -0000 @@ -0,0 +1,22 @@ +$OpenBSD$ + +Set some "more OpenBSD friendly" defaults + +--- doc/rtorrent.rc.orig Thu May 22 09:11:32 2014 ++++ doc/rtorrent.rc Thu May 22 09:13:48 2014 +@@ -97,12 +97,12 @@ + # ahead. If the value is too low the disk may not be fully utilized, + # while if too high the kernel might not be able to keep the read + # pages in memory thus end up trashing. +-#hash_read_ahead = 10 ++hash_read_ahead = 8 + + # Interval between attempts to check the hash, in milliseconds. +-#hash_interval = 100 ++hash_interval = 10 + + # Number of attempts to check the hash while using the mincore status, + # before forcing. Overworked systems might need lower values to get a + # decent hash checking rate. +-#hash_max_tries = 10 ++hash_max_tries = 5