You might review the Server_getNumMemSegs()/Server_getMemStat() API calls
(available at runtime after Engine_open()). These provide statistics about the
memory resources on remote processors.
Calling these services after each codec create/delete may help you better
understand memory usage on the DSP.
Finally, note that you could also run out of other resources - e.g. DMA, HW
accelerators, etc. So it's not just out of memory that can cause a codec
create to fail.
Chris
From: davinci-linux-open-source-bounces+cring=ti@linux.davincidsp.com
[mailto:davinci-linux-open-source-bounces+cring=ti@linux.davincidsp.com] On
Behalf Of chensu.main
Sent: Tuesday, April 28, 2009 1:42 AM
To: Tivy, Robert
Cc: davinci-linux-open-source
Subject: Re: RE: Problem about DSP server config of DM6446
Hi , Robert
I wonder is it a limitation of RMS(Resource Manager Server) or DSP/BIOS ? I
will modify my code now.
Thanks a lot.
2009-04-28
chensu.main
发件人: Tivy, Robert
发送时间: 2009-04-28 06:38:15
收件人: chensu.main; davinci-linux-open-source
抄送:
主题: RE: Problem about DSP server config of DM6446
I'm not sure about a document, but the number of algorithm objects that you can
create depends on the size of the memory block from which the stacks are
allocated. As you've seen, cutting the stack size down allows you to create
more. You might be able to find a formula, but the real answer is as many as
you have memory for.
- Rob
From: davinci-linux-open-source-boun...@linux.davincidsp.com
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of
chensu.main
Sent: Monday, April 27, 2009 8:03 AM
To: davinci-linux-open-source
Subject: Problem about DSP server config of DM6446
Hi all ,
In my application , I have to create one algorithm many times .
Fistly I config DSP server's CFG file and set stack size to 16384 in
Server.algs {} , but app can only create 7 instances of my algorithm . Then I
fix stack to 4096 and I can create more .
My question is How many algorithm objects can I create . Which document
describe it indetail ?
2009-04-27
chensu.main
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source