I am using MATLAB on my Mac. Well, MATLAB is running well but not fast -- while there are plenty of free memory, my Mac still compresses MATLAB's memory - from ~2GB to ~600MB -- not to mention the Java VM overhead on which MATLAB is running.

I was wondering if there's any Terminal command I can use to turn off memory compression for this specific app, just like the OS won't compress kernel_task. Thanks!

  • 1
    Why would you want to? Is it running slowly? And are you sure it's the compressed memory? – SilverWolf Nov 10 '17 at 19:38
  • @seaturtle I think MATLAB is not running at its full potential since it is wasting too much time accessing the variables stored and compressed on memory. And oddly enough, the compression ratio of MATLAB is way much higher than most other apps... – jackxujh Nov 10 '17 at 19:41
  • 1
    Hm. Well, I don't know how to stop the compression. Out of curiosity, how did you find out that it was slow accessing variables? LLDB? – SilverWolf Nov 10 '17 at 19:43
  • @seaturtle I think it is because when running a live script, the cpu usage is not close to 100%, while it used to be ~130%. And I’m not running other apps. – jackxujh Nov 10 '17 at 19:46
  • 2
    Well, just because it's not a CPU problem doesn't mean it's a memory problem, it could also be I/O or even your GPU. (: And here's the important thing – does it feel too slow? – SilverWolf Nov 10 '17 at 19:49

You must log in to answer this question.

Browse other questions tagged .