Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Mathematica 7 slow under Ubuntu 10.04 (lucid)

  1. #1
    Join Date
    Nov 2008
    Location
    Athens, Greece
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Mathematica 7 slow under Ubuntu 10.04 (lucid)

    After spending a lot of time trying to resolve how to make Mathematica 7.0 not to consume a lot of CPU resources, I decided to summarize it here, in case people find it helpful. First download the attachments. Then (assuming the tar.gz files are in your home directory ~/):

    > cd /usr/local/Wolfram/Mathematica/7.0/SystemFiles/Libraries/Linux
    > sudo mv libML32i3.so 00-libML32i3.so
    > sudo tar xvfz ~/libML32i3_for32.so.tar.gz
    > sudo chmod a+rx libML32i3.so
    > cd ../Linux-x86-64/
    > sudo mv libML32i3.so 00-libML32i3.so; sudo mv libML64i3.so 00-libML64i3.so
    > sudo tar xvfz ~/libMLfor64.tar.gz
    > sudo chmod a+rx libML*.so

    Java still takes ~ 15% CPU time. Open a (separate) notebook and
    Needs["JLink`"]
    UninstallJava[]

    Every time you use java (e.g. in the Help center), java starts again. When you finish and don't wish to spend the 15% CPU time anymore, call
    UninstallJava[]
    again (...and again)

    Some people find it useful to disable java alltogether:
    > cd /usr/local/Wolfram/Mathematica/7.0/SystemFiles/Links/
    > sudo mv JLink 00-JLink
    Help center is not available in that case (as well as other java stuff). Rename 00-JLink back to JLink and you are back to normal (uh, well...)

    References:
    http://ubuntuforums.org/showpost.php...2&postcount=46
    http://ubuntuforums.org/archive/inde...t-1136142.html
    http://www.linuxtent.com/?p=266
    and possibly many more...



    -------------------------------------------------------------

    I also got the following response from Wolfram:

    Hello Konstantinos,

    Thank you for the email.

    This is a known issue, and we advise the users who get into High CPU usage
    to use the following Binary instead.

    http://download.wolfram.com/?key=QNQKNV



    Sincerely,

    Aravind Hanasoge, Ph.D.
    Technical Support
    Wolfram Research, Inc.
    Attached Files Attached Files
    Last edited by konstant@mail.ntua.gr; June 9th, 2010 at 08:28 PM. Reason: More information from wolfram.com

  2. #2
    Join Date
    Jun 2005
    Location
    Umeå, Sweden
    Beans
    475
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    Shouldn't it be possible to just have Java on one core and do the math stuff on other cores? Most people have dual- or quad-core processors nowadays but afaik Mathematica only uses one core by default...
    Just trying to help...

  3. #3
    Join Date
    Dec 2009
    Beans
    1

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    Thanks Konstant

  4. #4
    Join Date
    May 2008
    Beans
    109

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    The java enabling/disabling seems like kind of a pain (at least for someone like me who needs to consult mathematica help constantly).

    Is the performance increase from just changing the libraries significant?

  5. #5
    Join Date
    Jul 2009
    Beans
    2

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    Nice tutorial, thank you!

  6. #6
    Join Date
    Jun 2010
    Beans
    1

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    This fix worked great on my Dell xpsM1330 .
    Now Mathematica 7 consumes only 2.3% CPU when not computing.
    On clicking Help, Java kicks in and consumes 15% from then on.
    Following the kill Java solution does remove Java until the next click on Help.

    Thanks for the effort to solve the CPU problem with Math 7 on Ubuntu 10.04.
    I have resisted upgrading to 10.04 until this was solved
    since I use Mathematica every day for my number/plotting crunching.

  7. #7
    Join Date
    Jun 2010
    Beans
    1

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    Konstantinos, you're my hero. System monitor now reads 0% CPU usage between calculations for "Mathematica" and "Mathematica Kernel". Both were formerly 12%.

    -dal
    thinkpad X201t, Intel i7-620LM, 3GB ram

  8. #8
    Join Date
    May 2010
    Beans
    1

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    I had the same problem when I was evaluating Mathematica prior to purchase. I followed your steps above and it did indeed reduce my CPU utilization - I think to maybe 6% or so.

    However, I just purchased Mathematica, and decided to use their support to get an official fix. They sent me what I believe is a prerelease if 7.0.2 and the problem is now completely fixed. I can even bring up help and close it without any unnecessary CPU usage.

    Ahhh - silent computer once again.

  9. #9
    Join Date
    Jan 2009
    Beans
    4

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    I installed the file the Mathematica guys sent you.
    Ah, my computer finally stopped squeaking!!!
    Thank you so much!

  10. #10
    Join Date
    Aug 2010
    Beans
    17

    Re: Mathematica 7 slow under Ubuntu 10.04 (lucid)

    Thnx, solution worked for me!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •