While you might not be explicitly allocating much memory, probably codecs that
you're using are. You will need to increase the number of buffers of size >=
884736 for CMEM. Since your current pool configuration consumes all of the
12MB granted to CMEM, you will need to either reduce some of the pools or grant
more memory to CMEM.
One possibility is to simply increase the pool buffer size that currently is
configured as "7x829440". You should have enough room in your CMEM memory to
change 829440 to 884736.
If that doesn't do the trick for you, you will need to get some idea of your
CMEM memory needs. One way to do this is to set the CMEM module's debug flag
to true in your application .cfg file:
var cmem=xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');
cmem.debug = true;
It looks like you're already doing this (or some other module is doing this for
you), since you listed CMEM debug in your original email. Take a look at the
allocation requests to CMEM, and match your pool allocations accordingly.
This Wiki might help:
http://wiki.davincidsp.com/index.php?title=CMEM_Overview
- Rob
> -----Original Message-----
> From: Neerav Patel [mailto:[email protected]]
> Sent: Wednesday, December 17, 2008 11:34 AM
> To: Tivy, Robert
> Cc: Neerav Patel; [email protected]
> Subject: Re: Error with CMem
>
> Hi Robert,
>
> Thanks for the response, is there anything that I can do to
> then to stop getting this error, I am not doing a lot of
> memory allocation?
>
> Is there a way to make more space?
>
> Tivy, Robert wrote:
> > Your insmod command looks fine. With it, you've got 3 buffers
> > available from pools that have large enough buffers (the first 2
> > entries in your 'pools' setting). The 3rd entry configures
> 7 buffers
> > of size 829440, which is a little bit too small for satisfying
> > requests for 8884736.
> >
> > So, it comes down to how many allocations from the first 2
> pools have
> > already happened prior to this error. I'd guess that you're simply
> > running out of large enough buffers.
> >
> > - Rob
> >
> >
> --------------------------------------------------------------
> ----------
> > *From:*
> >
> davinci-linux-open-source-bounces+rtivy=ti....@linux.davincidsp.com
> >
> [mailto:[email protected]
avincidsp.com]
> > *On Behalf Of *Neerav Patel
> > *Sent:* Wednesday, December 17, 2008 11:15 AM
> > *To:* [email protected]
> > *Subject:* Error with CMem
> >
> > Hi
> >
> >
> >
> > I have managed to get jpeg compression working on the
> DM355 Board,
> > but everytime I run the code, I am getting a error like:
> >
> >
> >
> > CMem Error: getPool: Failed to get a pool fitting a size 884736
> >
> > CMEMK Error: Failed to find a pool which fits 884736
> >
> >
> >
> > I have tried to change the insmod command but I don't think I am
> > doing it right since, no matter what I do it pops this
> error out,
> > can someone show me how this is done. This is the following
> > insmod command I am using
> >
> >
> >
> > Insmod cmemk.ko phys_start=0x87400000 phys_end=0x88000000
> >
> >
> pools=1x2097152,2x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x
> > 4096
> >
> >
> >
> > Thanks in advance
> >
>
>
> _______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source