From owner-freebsd-doc@FreeBSD.ORG Wed Oct 13 08:47:29 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68D9E16A4CE for ; Wed, 13 Oct 2004 08:47:29 +0000 (GMT) Received: from outmx009.isp.belgacom.be (outmx009.isp.belgacom.be [195.238.3.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F07C43D45 for ; Wed, 13 Oct 2004 08:47:28 +0000 (GMT) (envelope-from geert@lori.mine.nu) Received: from outmx009.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id i9D8lOcX007479 for ; Wed, 13 Oct 2004 10:47:24 +0200 (envelope-from ) Received: from lori.mine.nu (47-135.244.81.adsl.skynet.be [81.244.135.47]) with ESMTP id i9D8lL9I007459 for ; Wed, 13 Oct 2004 10:47:21 +0200 (envelope-from ) Received: by lori.mine.nu (Postfix, from userid 1000) id 24851ABD; Wed, 13 Oct 2004 10:47:20 +0200 (CEST) Date: Wed, 13 Oct 2004 10:47:20 +0200 From: Geert Hendrickx To: freebsd-doc@freebsd.org Message-ID: <20041013084720.GC96867@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 Subject: Re: Maple troubles with SMP -- solved. How to contribute this to the FBSD documentation now? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 08:47:29 -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 (posted on questions@ recently) 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 section 10.4, which describes how to get Maple running on FreeBSD, and include the patches I've written. GH PS: please CC me in your replies as I am not subscribed to this list. -- :wq