From owner-freebsd-java@FreeBSD.ORG Wed Apr 2 06:45:46 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23F6B1065671 for ; Wed, 2 Apr 2008 06:45:46 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id BB8268FC28 for ; Wed, 2 Apr 2008 06:45:45 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id m326jiel031283; Tue, 1 Apr 2008 23:45:44 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id m326jhuG031282; Tue, 1 Apr 2008 23:45:43 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 1 Apr 2008 23:45:43 -0700 From: Greg Lewis To: "Marc G. Fournier" Message-ID: <20080402064543.GA30534@misty.eyesbeyond.com> References: <24A133A6EE9DA04411B3CF04@ganymede.hub.org> <20080401161800.1c4ee021.cyb.@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: Andreas Rudisch <"cyb."@gmx.net>, freebsd-java@freebsd.org Subject: Re: Azureus + 7-STABLE == Slow download + No Upload X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 06:45:46 -0000 On Tue, Apr 01, 2008 at 09:04:46PM -0300, Marc G. Fournier wrote: > - --On Tuesday, April 01, 2008 16:18:00 +0200 Andreas Rudisch > wrote: > > > I had the problem too when testing FreeBSD 7.0-RC2. Azureus would start > > but data transfer was very slow, if there was a connection happing to > > other peers at all. > > > > On FreeBSD 6.1/2/3 Azureus shows the same behaviour (at least on my PC) > > when _not_ using /etc/libmap.conf to map libthread to libc_r. > > > > Work-arounds like using other clients are one thing, but I would like > > to see a fix for this on FreeBSD 7. Is there anything that can be done > > to help identify / solve the problem? > > I have to agree here ... with the report that 7.x is 15% hten current Linux > kernel on SMP systems, it would definitely set us back in the good PR dept if > we have a problem with our java :( The reason that we've persisted with doing patchsets for Java is so that everybody can get at the source and investigate/fix things which are important to them. I've persistently argued against switching solely to binary releases, when that has come up, for just this reason. So, if you can't find someone on the porting team who is both interested and has time to investigate it right now then there are a number of things you can do yourselves to start the investigation. Here are some possibilities: . Look through the list archives into what people have found out about problems with Azureus before. This isn't the first time this has come up. . Look at what the kernel threads are doing periodically with ps(1). . Dump the Java threads periodically. . Run Azureus under ktrace and look at what syscalls are being made. There is going to be a lot of output from ktrace I expect, so its going to take some time to sort through. . Run this on 6.x and 7.x and try the different threading libraries. . Run it on Linux and compare what it does if you're interested. . Run it under different JDKs to see if that makes any difference. None of this will even require getting your hands dirty with the code, it will just take some time commitment to do it and analyse the results. If you wanted to go further you could start trying to mess around with gdb and/or trace statements in the code. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org