ports/95152: [PATCH] net-p2p/btqueue file reads are extremely slow on FreeBSD 4.x
Sven Berkvens-Matthijsse
sven at berkvens.net
Fri Mar 31 13:10:20 UTC 2006
>Number: 95152
>Category: ports
>Synopsis: [PATCH] net-p2p/btqueue file reads are extremely slow on FreeBSD 4.x
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 31 13:10:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Sven Berkvens-Matthijsse
>Release: FreeBSD 4.10-STABLE i386
>Organization:
De Kattenfabriek
>Environment:
System: FreeBSD cat.berkvens.net 4.10-STABLE FreeBSD 4.10-STABLE #4: Sun Oct 31 01:46:30 CEST 2004 sven at cat.berkvens.net:/extra0/usr_obj/usr/src/sys/CAT i386
>Description:
The port net-p2p/btqueue exhibits extremely slow file reads when
rechecking files for hash correctness and also in other situations.
This is due to a broken libc on FreeBSD 4.x, that does unbuffered
reads PER BYTE instead of filling a given buffer with one read call.
>How-To-Repeat:
Install BTQueue on FreeBSD 4.x and try to check existing torrents.
>Fix:
The following patch, when installed as
/usr/ports/net-p2p/btqueue/files/patch-BitTorrent::defaultargs.py
will solve the problem:
--- BitTorrent/defaultargs.py.orig Fri Mar 31 15:02:25 2006
+++ BitTorrent/defaultargs.py Fri Mar 31 15:02:39 2006
@@ -33,6 +33,8 @@
if os.name == 'posix':
if os.uname()[0] in ['Darwin']:
BAD_LIBC_WORKAROUND_DEFAULT = MYTRUE
+ if os.uname()[0] in ['FreeBSD']:
+ BAD_LIBC_WORKAROUND_DEFAULT = MYTRUE
MIN_INCOMPLETE = 100
if os.name == 'nt':
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list