[Ovmsdev] Memory leak

Michael Balzer dexter at expeedo.de
Mon Mar 19 19:20:27 HKT 2018


Steve,

I've seen some allocations looking like memory leaks but getting freed after a minute or two. I assume those are mongoose buffers or LWIP socket
structs getting freed after some timeout.

But if I remember right, those were accounted for on the TCP/IP task and/or the NetManTask, not on dynamic tasks.

I start dynamic tasks primarily for web command execution in streaming mode. The "vfs tail" command also runs as a dynamic task.

If you had the mDNS component still active, that could also be the cause.

Regards,
Michael


Am 19.03.2018 um 06:37 schrieb Stephen Casner:
> I see there are a couple of tasks that allocated memory but did not
> free it.  These are the tasks identified by TCB address in the module
> memory listing:
>
> OVMS# mo m
> Free 8-bit 32968/283136, 32-bit 27588/55864, SPIRAM 0/0
> --Task--     Total DRAM D/IRAM   IRAM SPIRAM   +/- DRAM D/IRAM   IRAM SPIRAM
> no task            5276      0      0      0      +5276     +0     +0     +0
> esp_timer         55300      0    644      0     +55300     +0   +644     +0
> main              40072      0      0      0     +40072     +0     +0     +0
> ipc0              10848      0      0      0     +10848     +0     +0     +0
> Housekeeping      17588  44112      0      0     +17588 +44112     +0     +0
> ipc1                 12      0      0      0        +12     +0     +0     +0
> tiT                 136   1676      0      0       +136  +1676     +0     +0
> NetManTask            8   2196      0      0         +8  +2196     +0     +0
> wifi                  0   1600      0      0         +0  +1600     +0     +0
> eventTask             0  12960      0      0         +0 +12960     +0     +0
> 3FFE3E78              0   1396      0      0         +0  +1396     +0     +0
> Tmr Svc               0  27808      0      0         +0 +27808     +0     +0
> 3FFEAFE4              0     88      0      0         +0    +88     +0     +0
> AsyncConsole          0     20  27488      0         +0    +20 +27488     +0
> OVMS# mo t
> Number of Tasks = 16       Stack:  Now   Max Total    Heap 32-bit SPIRAM
> Task 3FFAFAB0  1 esp_timer           0 61770 65278   55300    644      0
> Task 3FFBDFC4  2 eventTask           0 63886 65278   12960      0      0
> Task 3FFC6630  3 CanRxTask           0 61610 65278       0      0      0
> Task 3FFCDA54  4 ipc0                0 64702 65278   10848      0      0
> Task 3FFCE054  5 ipc1                0 64702 65278      12      0      0
> Task 3FFCFE7C  8 IDLE                0 64742 65278       0      0      0
> Task 3FFD0410  9 IDLE                0 64746 65278       0      0      0
> Task 3FFD1DA4 10 Tmr Svc             0 61678 65278   27808      0      0
> Task 3FFD9DC8 14 Housekeeping        0 62478 65278   61700      0      0
> Task 3FFCE2C0 16 tiT                 0 63506 65278    1812      0      0
> Task 3FFE327C 17 SIMCOMTask          0 61638 65278       0      0      0
> Task 3FFF0654 22 AsyncConsole        0 62510 65278      20  27488      0
> Task 3FFE8464 25 wifi                0 63474 65278    1600      0      0
> Task 3FFF1828 26 pmT                 0 64398 65278       0      0      0
> Task 3FFE82CC 29 NetManTask          0 60254 65278    2204      0      0
> Task 3FFEC408 30 mdns                0 62906 65278       0      0      0
> OVMS#
>
>                                                         -- Steve
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev


-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26





More information about the OvmsDev mailing list