64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Maxim Khitrov
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Kris Kennaway

Maxim Khitrov wrote:

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:


Not yet, there is a summer of code project working on this but I don't 
think it is complete.  You can, of course, run 32-bit linux binaries on 
amd64.



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)?


Depends what you use it for, presumably.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread David Gurvich
If you are looking for batch processing, octave may be an option.  The
objective was to be as compatible with Matlab as possible.  There
wasn't any gui available when I last looked at this program.  

As a side note, I found the following from the Matlab site hilarious :
FreeBSD distributions of Linux are not compatible with MATLAB 6.0 (R12).

Makes me wonder how good the Linux version of Matlab is.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Maxim Khitrov
On Thu, Aug 7, 2008 at 10:37 AM, Kris Kennaway [EMAIL PROTECTED] wrote:
 Maxim Khitrov wrote:

 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:

 Not yet, there is a summer of code project working on this but I don't think
 it is complete.  You can, of course, run 32-bit linux binaries on amd64.

 Kris


Thanks, I'll give it a try under 32-bit and see if the simple change
from Linux to FreeBSD as host OS is enough to fix the problems we were
having.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Maxim Khitrov
On Thu, Aug 7, 2008 at 10:52 AM, Sean Cavanaugh
[EMAIL PROTECTED] wrote:


 Date: Thu, 7 Aug 2008 09:47:45 -0400
 From: [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Subject: 64-bit Linux Binary Compatibility (for Matlab)

 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.


 running 32-bit gives you access to 4GB of RAM, not 1. there is some address
 space that is used up by hardware such as video cards that will reduce that
 number reported by the OS.


I know that, the key word there is continuous space. In either case,
I'm only repeating what was said to me as the reason for purchasing a
brand new server - run in 64-bit mode to give Matlab more virtual
memory. It may end up being the case that the problem was completely
unrelated. I'll know in about an hour :)

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Kris Kennaway

Maxim Khitrov wrote:

On Thu, Aug 7, 2008 at 10:52 AM, Sean Cavanaugh
[EMAIL PROTECTED] wrote:



Date: Thu, 7 Aug 2008 09:47:45 -0400
From: [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Subject: 64-bit Linux Binary Compatibility (for Matlab)
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.


running 32-bit gives you access to 4GB of RAM, not 1. there is some address
space that is used up by hardware such as video cards that will reduce that
number reported by the OS.



I know that, the key word there is continuous space.


It still doesn't make any sense; processes on i386 have up to 3GB (by 
default) of address space to do with what they wish.  Perhaps someone 
forgot to increase the maxdsiz resource limit?


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Mark Tinguely

 Date: Thu, 7 Aug 2008 09:47:45 -0400
 From: [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 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.

Large contiguous allocations have to occur during or soon after booting because
of memory fragmentation. 

I can see that larger memory configurations on a 64 bit OS has a better
chance of allocating big chunks like this. Make sure you have much more
than 4G RAM since some hardware needs memory below 4GB, and the contiguous
allocation at boot favors memory towards the top of the 4GB range.

--Mark Tinguely.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Kris Kennaway

Mark Tinguely wrote:

Date: Thu, 7 Aug 2008 09:47:45 -0400
From: [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
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.


Large contiguous allocations have to occur during or soon after booting because
of memory fragmentation. 


To the best of my knowledge matlab does not run in the kernel and use 
contigmalloc() ;-)


User applications in UNIX use *virtual* memory.

Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64-bit Linux Binary Compatibility (for Matlab)

2008-08-07 Thread Pieter de Goeje
On Thursday 07 August 2008, David Gurvich wrote:
 If you are looking for batch processing, octave may be an option.  The
 objective was to be as compatible with Matlab as possible.  There
 wasn't any gui available when I last looked at this program.

There's math/koctave, which is a GUI for some definition of G.


 As a side note, I found the following from the Matlab site hilarious :
 FreeBSD distributions of Linux are not compatible with MATLAB 6.0 (R12).

 Makes me wonder how good the Linux version of Matlab is.

Indeed :-)

-- 
Pieter de Goeje
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]