Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Running 64-bit Matlab 7.12 on a 64-bit 10.04 Ubuntu Server. When I try run a big problem that should need 46GB of memory (the server has 72GB of Memory and plenty of swap space), the experimental script is killed by the OS (See dmesg below).

dmesg returns after the job is killed:
[26687918.130102] Out of memory: kill process 2630 (bash) score 4999042 or a child
[26687918.130103] Killed process 2774 (MATLAB)

So my question is: is there a default per process memory limit in Ubuntu Server 10.04, and if so, can it be modified?

Thanks, Gordon

share|improve this question
    
Have a look at How can I allocate more memory to a process –  Mitch May 23 '13 at 12:20
3  
what does ulimit -a show? Also take a look at Taming the OOM killer –  ortang May 23 '13 at 12:21
    
    
@ortang: core file size (blocks, -c) 0 scheduling priority (-e) 20 pending signals (-i) 16382 max locked memory (kbytes, -l) 64 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 (all the other fields are unlimited) –  Gordonei May 23 '13 at 14:37
    
As per the post suggested by @Mitch, this seems to be a Matlab-specific issue (a simple C program can allocate 46GB+ quite happily). The exact version is 7.12.0.635 (R2011a) and it is the 64-bit Linux version. According to Mathworks, this version should be about to support arrays of many TBs. –  Gordonei May 23 '13 at 15:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.