From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 14:15:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C796106573F for ; Thu, 7 Aug 2008 14:15:26 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by mx1.freebsd.org (Postfix) with ESMTP id 303808FC16 for ; Thu, 7 Aug 2008 14:15:25 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so550809fkk.11 for ; Thu, 07 Aug 2008 07:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=ieHGSLgbTYLzzJfh6PWTL/0iSLY/3GV5ewx8dqy7yLs=; b=n+o82dwfejZuHiaHDSlhpCHINx4yrpjwLxys3vUjAOf93MdTcGA/UWPQkS+47KL7i+ Z29eZ9VDufgW4EVSCG1rtLi5e3oAcVaWWOsJlakI0i+AHS2pWtIsacTFrrh4CGu/W6lV d2NMaLD4srN1SAggZbi3BJ8ljCkmI3m3Z3OG0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=amgzRKuLcXaxHFInugbNqG2YTEUiLyF0U4SAk9lJmsDg9jOkoBl5m5QVactL/7JXgp Q1tGvn8K0xPViD0YmbYyOOVRKt2t/Tz/ejxcMS8ZWhLwlmq6tjvuLkPXRJ7y5ZGsJPzm 60vEVyDomaKSmVjgvG/fJ13jRZHqpQan5Ttxw= Received: by 10.187.197.4 with SMTP id z4mr131442fap.35.1218116865923; Thu, 07 Aug 2008 06:47:45 -0700 (PDT) Received: by 10.187.217.10 with HTTP; Thu, 7 Aug 2008 06:47:45 -0700 (PDT) Message-ID: <26ddd1750808070647yf0a9205u514c6ba87fbf97a5@mail.gmail.com> Date: Thu, 7 Aug 2008 09:47:45 -0400 From: "Maxim Khitrov" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 64-bit Linux Binary Compatibility (for Matlab) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 14:15:26 -0000 Hello all, Simple question - am I able to run 64-bit linux binaries using the ABI emulation under FreeBSD 7.0 amd64? In the NOTES for amd64 kernel configuration the COMPAT_LINUX option is commented out, but I don't understand the explanation at the top of the section: #XXX keep these here for now and reactivate when support for emulating #XXX these 32 bit binaries is added. For 32-bit there is already the COMPAT_LINUX32 option, no? This is the first time that I've dealt with linux compatibility in FreeBSD, so would appreciate some pointers. The goal is to get Matlab running in 64-bit mode. Some of the algorithms that my colleagues need to execute were crashing the software, and they assumed that it was due to a limitation of virtual memory that is available under 32-bit. Apparently Matlab tries to allocate a continuous chunk of memory, and we needed to upgrade to 64-bit hardware to give it access to more than 1GB of memory, which is about the most that it was able to get before. It's a lousy explanation, but I wasn't employed at this place when this diagnosis was made. If anyone else here is running Matlab on FreeBSD, I'd welcome any pointers you can give me for setting it up. Right now, I'm following the steps listed in the handbook. As a side note - is it, in fact, the case that Matlab x86_64 will run slower than the 32-bit version (http://osdir.com/ml/netbsd.ports.x86-64/2006-07/msg00061.html)? - Max