diff options
author | Alex Naidis <alex.naidis@linux.com> | 2016-08-14 21:48:27 -0400 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-08-15 14:27:57 -0700 |
commit | 94774ac01d1953bcc7a70a7018267ee34793d3f7 (patch) | |
tree | f867ecae6e4e08dbbfb768463cec62bb6b586202 /cmds | |
parent | a5f80a555ab379546d4f96368b98bbf969229821 (diff) | |
download | frameworks_native-94774ac01d1953bcc7a70a7018267ee34793d3f7.zip frameworks_native-94774ac01d1953bcc7a70a7018267ee34793d3f7.tar.gz frameworks_native-94774ac01d1953bcc7a70a7018267ee34793d3f7.tar.bz2 |
dalvik: rework 3 and 4-GB dalvik heap configurations
The previous configuration sets target utilization as .25, which is geared towards
low memory devices. This path increases it to .75 and makes us pass the check:
(heaptargetutilization / 2) * heapsize = heapgrowthlimit
Example:
heapgrowthlimit: 256m
heapsize: 512m
heaptargetutilization: 0.75
0.75/2 * 512 = 192
To pass the check this has to be true:
192 = 256 (WRONG)
Check not passed.
This new configuration is optimized for higher RAM devices and passes the check:
heapgrowthlimit: 384m
heapsize: 1024m
heaptargetutilization: 0.75
0.75/2 * 1024 = 384
384 = 384 (TRUE)
Check passed.
Change-Id: I6839339382229da80546761c3746a032081ff2cd
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Diffstat (limited to 'cmds')
0 files changed, 0 insertions, 0 deletions