[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Matlab performance on Linux vs Windows



On Sat, Nov 27, 2004 at 09:14:38PM -0500, Thanhvu Nguyen wrote:
> Windows.  I have seen Matlab 6.5 running on Linux *twice* as slow as on
> Windows, e.g a 30 minute routine runs on Matlab 6.5 Windows take an hour
> or more on Matlab 6.5 Linux (same machine specs of course)

Haven't used Matlab on either but in my experience in perf testing your
question is poorly asked.  What is the routine doing?  Straight calculation?
Is the Linux machine properly configured?  Have you investigated Matlab's
websites to make sure it's properly configured?

What does "top" say?  How much time is spent in usermode versus kernel
mode for Matlab's process in each of Windows and Linux?  If it's "very high"
in both, then Matlab is not running the same userspace algorithms on the
Linux side.  If it's "very high" in Windows and "low" in Linux, then your
kernel or Matlab is misconfigured, or Matlab sucks on Linux.

I used to use Matlab on sparc workstations and it ran very fast there.
Linux kernel may suck at something Matlab needs.

You need to profile the app.



Reply to: