Something has a memory leak
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtubuntu-sensors |
New
|
Undecided
|
Unassigned | ||
maliit-framework (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I've tracked memory utilisation of maliit-server over a 12 hour period and can see that the heap is growing at about 1700 bytes a second. One can see this by strac'ing the process and seeing glib's malloc performing 4K mprotects every ~2.4 seconds and the occasional 1MB mmap2 to anonymous memory (aka heap) every 600-620 seconds.
[pid 2708] 12:48:57 mprotect(
[pid 2708] 12:48:59 mprotect(
[pid 2708] 12:49:02 mprotect(
[pid 2708] 12:49:04 mprotect(
[pid 2708] 12:49:07 mprotect(
[pid 2708] 12:49:09 mprotect(
[pid 2708] 12:49:11 mmap2(0xa0200000, 1048576, PROT_NONE, MAP_PRIVATE|
MOUS|MAP_NORESERVE, -1, 0) = 0xa0200000
[pid 2708] 12:49:11 mprotect(
Over a period of 1 day this will leak 140MB.
Changed in ubuntu-keyboard: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Michael Sheldon (michael-sheldon) |
To show the heap growth, run:
smemstat -p $(pidof maliit-server) 10
..and one sees ~1640 bytes per second heap growth.