From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 08:43:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F61E16A4CE for ; Wed, 13 Oct 2004 08:43:52 +0000 (GMT) Received: from outmx020.isp.belgacom.be (outmx020.isp.belgacom.be [195.238.2.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76E3943D3F for ; Wed, 13 Oct 2004 08:43:51 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx020.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i9D8hdgt016430 for ; Wed, 13 Oct 2004 10:43:40 +0200 (envelope-from ) Received: from lori.mine.nu (47-135.244.81.adsl.skynet.be [81.244.135.47]) with ESMTP id i9D8hXEH016373 for ; Wed, 13 Oct 2004 10:43:33 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id D6984ABD; Wed, 13 Oct 2004 10:43:32 +0200 (CEST) Date: Wed, 13 Oct 2004 10:43:32 +0200 From: Geert Hendrickx To: freebsd-questions@freebsd.org Message-ID: <20041013084332.GB96867@lori.mine.nu> References: <20041012165042.GA93462@lori.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041012165042.GA93462@lori.mine.nu> User-Agent: Mutt/1.4.2i X-GPG-Key: http://lori.mine.nu/gnupgkey.asc X-GPG-Key-ID: 1024D/766C1E92 X-Accept-Language: nl,en Subject: Re: Maple troubles with SMP -- solved. How to contribute this to the FBSD documentation now? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 08:43:52 -0000 On Tue, Oct 12, 2004 at 06:50:42PM +0200, Geert Hendrickx wrote: > Hello, > > I'm running FreeBSD 4.10-STABLE on a hyperthreaded i386 processor. My > kernel has SMP enabled, and with sysctl machdep.hlt_logical_cpus=0, top > shows two logical cpu's up and running. Works fine. > > Now I have some weird experiences running Maple 9.5 (with Linux > emulation). When sysctl machdep.hlt_logical_cpus is set to 0, Maple > won't start. I get the splash screen, but it hangs forever (top shows a > java process eating all cpu time). It takes a kill -9 to stop it. > > When machdep.hlt_logical_cpus is set to 1 (single cpu), Maple starts > fine, I can enter commands and everything works ok (except the help > function, it crashes very often). When I set the sysctl back to 0, > Maple gets very unstable when I enter further commands. Sometimes it > hangs (without any cpu action like before), sometimes it crashes, very > unpredictable behaviour really. > > Does anyone have any clue about what is happening? And about who is to > blame, FreeBSD's SMP code, Maple, or maybe the Linux emulation code? > > GH The problems described above appear to have to do with the Java RE that comes with the newer versions of Maple (older versions -- at least I know about version 7 -- didn't use Java, and worked perfectly on FreeBSD). I have hacked and patched some Maple shell scripts, so that Maple uses the native FreeBSD JDK which I have compiled from the Ports, and now it seems to work right. When I have fully tested this, I would like to update the FreeBSD documentation (the part about Linux emulation), which describes how to get Maple running on FreeBSD, and include the patches I've written. How should I do this? GH -- :wq