[Ovmsdev] RAM
Mark Webb-Johnson
mark at webb-johnson.net
Tue Oct 31 10:06:03 HKT 2017
Michael,
Regarding Bluetooth, please check ‘diff sdkconfig.default sdkconfig’ and make sure bluetooth settings match. We’ve got it configured to minimise that (primarily disabling the classic stack, and enabling the function to reclaim memory from that). Also, note that bluetooth is statically allocated at boot (for the 2.1 release of ESP IDF) so that means we’ve already got it included in our RAM remaining.
Regards, Mark.
> On 30 Oct 2017, at 9:07 PM, Michael Balzer <dexter at expeedo.de> wrote:
>
> Great, thanks!
>
> I'll also have a look at other saving options. The RT core size is just 1308 bytes, already including 512 bytes for metrics pointers. So names seem to count.
>
> Btw: the bluetooth stack eats up 64K of RAM when compiled in…
> https://www.esp32.com/viewtopic.php?t=3139 <https://www.esp32.com/viewtopic.php?t=3139>
>
> Regards,
> Michael
>
>
> Am 30.10.2017 um 03:38 schrieb Mark Webb-Johnson:
>> So, a reasonable saving of 10KB.
>>
>> I tried with memory and task debugging turned off, and we get m.freeram 118888/98200 going to 121884/104932.
>>
>> With the optimised OvmsMetrics code, RT seems to be allocating memory as follows:
>>
>> Free 8-bit 85812/246632, 32-bit 18576/43548, numafter = 1000
>> task=Asy total= 0 20616 24972 change= +0 +20616 +0
>>
>
> --
> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.teslaclub.hk/pipermail/ovmsdev/attachments/20171031/e4886613/attachment.html>
More information about the OvmsDev
mailing list