LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2009, 05:54 AM   #1
fatemi
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
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
 
Old 05-09-2009, 09:03 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by fatemi View Post
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??
 
Old 05-09-2009, 12:26 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Memory management in Matlab explained here.
 
Old 08-17-2009, 11:06 AM   #4
jonomillin
LQ Newbie
 
Registered: Jun 2007
Location: California
Distribution: Ubuntu 13.04
Posts: 3

Rep: Reputation: 0
Unhappy A similar error...

Quote:
Originally Posted by fatemi View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Matlab R2007b installation help required (Ubuntu 8.04) Purplemess Linux - Software 1 05-20-2008 07:12 AM
Help: rhel4->rhel5==>Matlab consumes more memory pronuncer Linux - Kernel 4 01-18-2008 05:40 PM
Flash memory as Video memory in Ubuntu? caa1980 Ubuntu 6 10-25-2007 11:55 AM
Matlab 6 error in Ubuntu Phyrexicaid Linux - Software 0 07-20-2005 03:38 AM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration