From owner-freebsd-java@FreeBSD.ORG Wed Feb 22 15:25:57 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A93B616A422 for ; Wed, 22 Feb 2006 15:25:57 +0000 (GMT) (envelope-from work@ashleymoran.me.uk) Received: from mail.dc-servers.com (mail.dc-servers.com [83.243.101.206]) by mx1.FreeBSD.org (Postfix) with SMTP id E70EF43D53 for ; Wed, 22 Feb 2006 15:25:56 +0000 (GMT) (envelope-from work@ashleymoran.me.uk) Received: (qmail 1897 invoked by uid 399); 22 Feb 2006 15:25:59 -0000 Received: from unknown (HELO alfie.jigsawhq.com) (work@ashleymoran.me.uk@213.106.224.113) by mail.dc-servers.com with SMTP; 22 Feb 2006 15:25:59 -0000 From: Ashley Moran Organization: Codeweavers Ltd To: freebsd-java@freebsd.org Date: Wed, 22 Feb 2006 15:24:35 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200602221524.35585.work@ashleymoran.me.uk> Subject: i386 java binaries causing 100% cpu on amd64 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, 22 Feb 2006 15:25:57 -0000 I have an Althlon 64 server running 6.0-rel in amd64 mode. I'm trying to compile JDK 1.5 on it, and I've gone about it two ways: * installing the binary package of the native JDK 1.4 created on my i386 desktop * installing emulators/linux_base and the Linux JDK 1.4 In both cases, when I run java -version, it does nothing but takes up 100% CPU. I've stress-tested the system by running an i386 version of the misc/chef port, and that runs, so the issue is not with i386 binaries in general. I'm using an Athlon64 CPU. I have recompiled the kernel with these options in make.conf (although not the world - not that it should make a difference?): CPUTYPE=athlon64, CFLAGS=-O2 -pipe, COPTFLAGS= -O -pipe It's a custom kernel but the only options I've changed are SHMMAXPGS=393216, SHMSEG=512, SHMMNI=1024, SEMMNI=512, SEMMNS=1024, SEMMNU=512, SEMMAP=1024 (for postgres). All the apparently essential options (COMPAT_43, COMPAT_IA32, COMPAT_LINUX32) are still in the kernel. linprocfs is mounted so no probs there. In short, I can't see anything wrong with my setup. does anyone have any ideas? Cheers Ashley