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

Commit 899ed3fc authored by Patrick Daly's avatar Patrick Daly
Browse files

mm: Subtract watermark boost from /proc/vmstat



Show unboosted watermarks to userspace. ULMK uses these
watermarks to decide whether or not to kill a process. Using the
boosted values reduces overall memory headroom.

Change-Id: I0e782c0c9aaebd054773b0cb71a46248b484dca5
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent aa7030af
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1568,9 +1568,9 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
		   "\n        present  %lu"
		   "\n        managed  %lu",
		   zone_page_state(zone, NR_FREE_PAGES),
		   min_wmark_pages(zone),
		   low_wmark_pages(zone),
		   high_wmark_pages(zone),
		   min_wmark_pages(zone) - zone->watermark_boost,
		   low_wmark_pages(zone) - zone->watermark_boost,
		   high_wmark_pages(zone) - zone->watermark_boost,
		   zone->spanned_pages,
		   zone->present_pages,
		   zone->managed_pages);