Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to limit virtual memory allocation/reservation on linux?
Replies: 4   Last Post: Jul 23, 2014 6:15 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Michael Stauffer

Posts: 4
Registered: 5/7/14
How to limit virtual memory allocation/reservation on linux?
Posted: May 7, 2014 3:28 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

(Noone's biting on Matlab Answers, so I'm re-posting here)

Matlab 2013a CentOS 6.1 64-bit

Matlab (with GUI) allocates/reserves (not sure which is proper for VIRT) almost 4.2G of virtual memory when it launces, even though it's only using a few hundred M, as shown by top:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15396 mgstauff 20 0 4131m 355m 75m S 1.0 0.6 0:14.97 MATLAB

The problem for me is that I'm running a Rocks cluster and want to limit the users by default to 3.9G of memory/virtual-memory usage/allocation. Rocks sets limits using ulimit. If I set 3.9G, Java/Matlab exits immediately on startup with out-of-memory error.

1) Can I setup my matlab installation to by default allocate/reserve less virtual memory for all users? If not, is there a manual way?

2) I'm assuming this allocation is not a fixed limit, but rather an initial allocation to have memory ready for use? That is, if users want more memory than shown above under VIRT while running matlab, this will expand?

Thanks!

-M



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.