commit | b28ff9131363f7b4a698990da5748b2a88c3ed35 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jul 11 17:15:44 2014 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Jul 14 16:39:56 2014 -0700 |
tree | 828ca0e2db67e0549c0882eb0699ad376c8f2c13 | |
parent | 9d9e62cf376cf3f70ebf2a11335c02cc155416bc [diff] |
lmkd: mlock all memory Use mlockall(MCL_FUTURE) to lock all lmkd pages in memory. This avoids lmkd thrashing when the system is low on memory. As a side effect, it will also keep the .text sections of liblog, libm, libc, and libprocessgroup in memory at all times. Bug: 16236289 Change-Id: Idd70557efa4b1e14bc86f14220672a30f6c956e3