Project

General

Profile

Bug #37

aosp-7.1 maguro : memory leak

Added by Anonymous about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
High
Target version:
% Done:

100%

Device:
tuna

Description

I recorded some data about memory used by the system which show signs of memory leaks, with Unlegacy and other ROMs.

I took the data from Developer Options -> Running services , from the System line as shown in the screenshot attached. The number I recorded (in MB) is the highest number shown for at least 3s, in an interval of at least 30s, to avoid random spikes.
After a first set taken from a full system with Slim7 1.7 I tested different versions of Unlegacy and ZZ Tuna ( https://forum.xda-developers.com/galaxy-nexus/development/rom-t3297218 ) withouth GApps, without rooting, and with a set of only 5-7 apps installed from fixed apks. Every installation was done with TWRP 3.1.1-1 ( https://androidfilehost.com/?fid=961840155545590690 ), the procedure was to do a factory reset, then wipe System partiton, install the ROM and reboot. Then I installed the apks (listed in the following data sheet) with adb.

Data here:
https://docs.google.com/spreadsheets/d/e/2PACX-1vRVK7Is4S_529w7OCs3yuQtXNG0tOkDi9YF6s0H4d6egT5NE8dK5U8FDlKdLkiGyy6iwhYoYQPjLHdn/pubhtml?gid=0&single=true

The data shows a stable use of RAM for ROMs based on Marshmallow and a growing usage or RAM by the System for ROMs based on Nougat, with or without CMA (I didn't check dmesg but the experimental build 20171108180328 had ~890MB of total RAM available, so I assumed it is without CMA).

Screenshot_20171113-125853.png - System MB taken from this panel. (63.3 KB) Anonymous, 11/13/2017 03:16 PM

20

History

#1 Updated by Anonymous about 3 years ago

There were no apps in Recents while taking the data and the phone wasn't connected to power or PC.

#2 Updated by Anonymous almost 3 years ago

I opened this issue. I cannot login anymore here with GitHub OAuth, so I cannot close this bug. The workaround to it was merged with commit b06100a39f19522c47f3ab7fc270368fa97d52e3 , thanks.

#3 Updated by André Pinela almost 3 years ago

  • Status changed from New to Closed
  • Assignee set to Andrei Măceș
  • % Done changed from 0 to 100

Also available in: Atom PDF