Thread Subject: Out of memory

Subject: Out of memory

From: Peter Russo

Date: 2 Jul, 2009 19:03:01

Message: 1 of 5

Hi,
I am continually running out of memory, because I am doing a lot of work with images. using "feature('memstats')" i found out that i have 1.5GB free virtual memory free when i start matlab, and the largest contiguous free block is 1.2GB after doing a lot of work, both of these drop drastically. I tried using "pack" and "clear" to free up memory and defragment it, but neither one helps free up any memory. Does anyone know why this is or how to fix it? Thanks

Subject: Out of memory

From: Stan Bischof

Date: 2 Jul, 2009 19:06:59

Message: 2 of 5

Peter Russo <peter.russo@gmail.com> wrote:
> Hi,
> I am continually running out of memory, because
> I am doing a lot of work with images.

Save yourself a lot of hassle buy yourself some more RAM. It is dirt
cheap these days.

Stan

Subject: Out of memory

From: Luigi Giaccari

Date: 2 Jul, 2009 19:58:01

Message: 3 of 5

"Peter Russo" <peter.russo@gmail.com> wrote in message <h2j095$gj3$1@fred.mathworks.com>...
> Hi,
> I am continually running out of memory, because I am doing a lot of work with images. using "feature('memstats')" i found out that i have 1.5GB free virtual memory free when i start matlab, and the largest contiguous free block is 1.2GB after doing a lot of work, both of these drop drastically. I tried using "pack" and "clear" to free up memory and defragment it, but neither one helps free up any memory. Does anyone know why this is or how to fix it? Thanks


I reply partially and I propose a new question.

You can solve this problem batching the code. I don't why but my version can only handle about 7e6 doubles. After that help memory error.

Dodes anybody knows whay this error occurs so early?

http://giaccariluigi.altervista.org/blog/

Subject: Out of memory

From: kaori Joo

Date: 8 Jul, 2009 17:10:18

Message: 4 of 5

I don't have an answer but a question instead. I work with huge matrices and after some time running them, matlab gets out of memory. I have 2.66 GHz and 3.24 GB of RAM. Is there some other solution possible rather than batching up the code (which I'm trying to do)?

Roc?o


"Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <h2j3g9$jgo$1@fred.mathworks.com>...
> "Peter Russo" <peter.russo@gmail.com> wrote in message <h2j095$gj3$1@fred.mathworks.com>...
> > Hi,
> > I am continually running out of memory, because I am doing a lot of work with images. using "feature('memstats')" i found out that i have 1.5GB free virtual memory free when i start matlab, and the largest contiguous free block is 1.2GB after doing a lot of work, both of these drop drastically. I tried using "pack" and "clear" to free up memory and defragment it, but neither one helps free up any memory. Does anyone know why this is or how to fix it? Thanks
>
>
> I reply partially and I propose a new question.
>
> You can solve this problem batching the code. I don't why but my version can only handle about 7e6 doubles. After that help memory error.
>
> Dodes anybody knows whay this error occurs so early?
>
> http://giaccariluigi.altervista.org/blog/

Subject: Out of memory

From: Loren Shure

Date: 8 Jul, 2009 18:19:45

Message: 5 of 5

In article <h32jtq$6bb$1@fred.mathworks.com>, rocio.joo@gmail.com
says...
> I don't have an answer but a question instead. I work with huge matrices and after some time running them, matlab gets out of memory. I have 2.66 GHz and 3.24 GB of RAM. Is there some other solution possible rather than batching up the code (which I'm trying to do)?
>
> Roc?o
>
>
> "Luigi Giaccari" <giaccariluigi@msn.com> wrote in message <h2j3g9$jgo$1@fred.mathworks.com>...
> > "Peter Russo" <peter.russo@gmail.com> wrote in message <h2j095$gj3$1@fred.mathworks.com>...
> > > Hi,
> > > I am continually running out of memory, because I am doing a lot of work with images. using "feature('memstats')" i found out that i have 1.5GB free virtual memory free when i start matlab, and the largest contiguous free block is 1.2GB after doing a lot of work, both of these drop drastically. I tried using "pack" and "clear" to free up memory and defragment it, but neither one helps free up any memory. Does anyone know why this is or how to fix it? Thanks
> >
> >
> > I reply partially and I propose a new question.
> >
> > You can solve this problem batching the code. I don't why but my version can only handle about 7e6 doubles. After that help memory error.
> >
> > Dodes anybody knows whay this error occurs so early?
> >
> > http://giaccariluigi.altervista.org/blog/
>

Take a look at this document: http://www.mathworks.com/support/tech-
notes/1100/1106.html?BB=1

It's the tech support guide to memory management and it has lots of
great information.

--
Loren
http://blogs.mathworks.com/loren

Tags for this Thread

Everyone's Tags:

memory(2)

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
memory kaori Joo 8 Jul, 2009 13:14:04
memory Ned Gulley 2 Jul, 2009 17:05:26
rssFeed for this Thread

Contact us at files@mathworks.com