diff options
author | Charan Teja Reddy <charante@codeaurora.org> | 2020-01-30 18:30:09 +0530 |
---|---|---|
committer | Charan Teja Reddy <charante@codeaurora.org> | 2020-03-02 15:49:32 +0530 |
commit | fda54864f0cb89bafdbcc04476890371260fe9cb (patch) | |
tree | cc07ad03c67d49a0788483400728f0e1885544e1 /libutils/ProcessCallStack_fuzz.cpp | |
parent | 62d88a8346242dc655bd5269344c8719ef8f3299 (diff) |
lmkd: input valid zone's file cache stats to file_cache_to_adj()
Having both highmem and normal zone in the system, file pages are
preffered to go to highmem and then to normal zone. But in the
file_cache_to_adj() calculations, we first input the normal zone stats
and then fall back to highmem zone. This can cause memory headroom
problem. Rely on the pgskip_(dma|normal|highmem|movable) stats to
decide if to consider particular zone file cache info. If a particular
zone is skipped, then memory pressure is not from allocation request of
that zone thus the file cache info of that zone can be skipped.
CRs-Fixed: 2614374
Change-Id: I2c1e83df66ba9ae20a6c011f83212651635ef01b
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions