LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   matlab out of memory in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/matlab-out-of-memory-in-ubuntu-724838/)

fatemi 05-09-2009 05:54 AM

matlab out of memory in ubuntu
 
i have a program in matlab , in previous version of ubuntu (ubuntu 8.10), it was ran successfully but in new version of it (9.04) when i ran it ,the following error was appeared in command window:

Out of memory. Type HELP MEMORY for your options.

i saw in system monitor that in perevious version swap memory was used but in new version when Ram was full this error was appeared and swap memory was not used

how can i fix this error

TB0ne 05-09-2009 09:03 AM

Quote:

Originally Posted by fatemi (Post 3535358)
i have a program in matlab , in previous version of ubuntu (ubuntu 8.10), it was ran successfully but in new version of it (9.04) when i ran it ,the following error was appeared in command window:

Out of memory. Type HELP MEMORY for your options.

i saw in system monitor that in perevious version swap memory was used but in new version when Ram was full this error was appeared and swap memory was not used

how can i fix this error

Did you type in "HELP MEMORY", and read your options???? Did you do what it suggested??

colucix 05-09-2009 12:26 PM

Memory management in Matlab explained here.

jonomillin 08-17-2009 11:06 AM

A similar error...
 
Quote:

Originally Posted by fatemi (Post 3535358)
i have a program in matlab , in previous version of ubuntu (ubuntu 8.10), it was ran successfully but in new version of it (9.04) when i ran it ,the following error was appeared in command window:

Out of memory. Type HELP MEMORY for your options.

i saw in system monitor that in perevious version swap memory was used but in new version when Ram was full this error was appeared and swap memory was not used

how can i fix this error

I have the same issue. I am running Ubuntu 9.04 and Matlab 2008a (7.6.0).

I have read the documentation on:
http://www.mathworks.com/support/tec...1100/1107.html
http://www.mathworks.com/support/tec...1100/1106.html

as well as, HELP MEMORY, but I cannot use this function:
>> memory
??? Error using ==> memory
Function MEMORY is not available on this platform.

also:

>> feature memory
??? Error using ==> feature
An unknown feature was specified

>> feature memstat
??? Error using ==> feature
An unknown feature was specified

>> feature memstats
??? Error using ==> feature
An unknown feature was specified

>> feature('memstats')
??? Error using ==> feature
An unknown feature was specified

etc...

As far as my memory is concerned, this is the dump I get directly after receiving the matlab "out of memory" error:

jono@jono-laptop:~$ ulimit
unlimited
jono@jono-laptop:~$ free -m
.............total.......used.......free.....shared....buffers.....cached
Mem:..........3616.......2221.......1394..........0........139........761
-/+.buffers/cache:.......1320.......2295
Swap:.........8189..........0.......8189


I am working with a 5x2e6 array of float numbers, and will be using them in a neural network. In my mind this is only around 80mb for the array, and maybe a few more times that for preprocessing...

Does anyone have any suggestions?

Thanks!
Jono


All times are GMT -5. The time now is 07:55 PM.