Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c2ffb5d authored by Trishool Narayanasetty's avatar Trishool Narayanasetty Committed by Gerrit - the friendly Code Review server
Browse files

frameworks/base: Make minfree values aggressive for 32bit devices

This change makes lowmemorykiller minfree values aggresive for 32bit
devices. So that processes get killed earlier and system can reclaim
memory earlier without hitting direct reclaim/background reclaim path
frequently.

Change-Id: I46fb09a405107795b571f05c86376d0df2189622
parent e515d746
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -202,13 +202,13 @@ final class ProcessList {

    // These are the low-end OOM level limits for 32bit 1 GB RAM
    private final int[] mOomMinFreeLow32Bit = new int[] {
            8192, 12288, 16384,
            24576, 28672, 32768
            12288, 18432, 24576,
            36864, 43008, 49152
    };
    // These are the high-end OOM level limits for 32bit 1 GB RAM
    private final int[] mOomMinFreeHigh32Bit = new int[] {
            49152, 61440, 73728,
            86016, 98304, 122880
            73728, 92160, 110592,
            129024, 177012, 227012
    };
    // These are the low-end OOM level limits.  This is appropriate for an
    // HVGA or smaller phone with less than 512MB.  Values are in KB.