summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVinayak Menon <vinmenon@codeaurora.org>2016-09-19 12:44:15 +0530
committerVinayak Menon <vinmenon@codeaurora.org>2016-12-16 20:25:45 +0530
commitcfc8db22aea588a7aeae9f849a727a0ce8479cc0 (patch)
tree1738659c9d26755c77e355fcf4a07ae13ae09b81 /tools/perf/scripts/python
parent3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff)
mm: vmpressure: make vmpressure window variable
Right now the vmpressure window is of constant size 2MB, which works well with the following exceptions. 1) False vmpressure triggers are seen when the RAM size is greater than 3GB. This results in lowmemorykiller, which uses vmpressure events, killing tasks unnecessarily. 2) Vmpressure events are received late under memory pressure. This behaviour is seen prominently in <=2GB RAM targets. This results in lowmemorykiller kicking in late to kill tasks resulting in avoidable page cache reclaim. The problem analysis shows that the issue is with the constant size of the vmpressure window which does not adapt to the varying memory conditions. This patch recalculates the vmpressure window size at the end of each window. The chosen window size is proportional to the total of free and cached memory at that point. Change-Id: I7e9ef4ddd82e2c2dd04ce09ec8d58a8829cfb64d Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions