CHROMIUM: low-mem: improve detection of low-memory conditions.
authorLuigi Semenzato <semenzato@chromium.org>
Thu, 23 Feb 2012 19:15:07 +0000 (11:15 -0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:14:38 +0000 (15:14 -0700)
commit9e7dd4d02a098b19c4dc84f4aca0c4232f6d9ad0
tree9da6bf437e92d3ac4f09a50b01e576dad0056b7b
parent3cf899952dc03e7bbd1d75f49da324cffebb160d
CHROMIUM: low-mem: improve detection of low-memory conditions.

This patch tries to address issues with the current low-memory detection.
Rather than using the logical conjunction of two separate conditions, we
compute a single number which estimates how much memory is available
for allocation with little or no work.

BUG=chromium-os:20086
TEST=ran kernel_LowMemNotify autotest.  Will expand test (go/crosbug/26853)

Change-Id: Ib47c4ffefac834379003c15b119a38d8ceae94a5
Signed-off-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/16499
include/linux/low-mem-notify.h