From: Michael Jeanson Date: Mon, 12 Feb 2018 17:32:12 +0000 (+0100) Subject: Fix: update vmscan instrumentation for v4.16 X-Git-Tag: v2.11.0-rc1~75 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=9cf057fcd8189b44b11069a3f96be6e53d57c9e9;hp=9cf057fcd8189b44b11069a3f96be6e53d57c9e9;p=lttng-modules.git Fix: update vmscan instrumentation for v4.16 See upstream commit : commit 9092c71bb724dba2ecba849eae69e5c9d39bd3d2 Author: Josef Bacik Date: Wed Jan 31 16:16:26 2018 -0800 mm: use sc->priority for slab shrink targets Previously we were using the ratio of the number of lru pages scanned to the number of eligible lru pages to determine the number of slab objects to scan. The problem with this is that these two things have nothing to do with each other, so in slab heavy work loads where there is little to no page cache we can end up with the pages scanned being a very low number. This means that we reclaim next to no slab pages and waste a lot of time reclaiming small amounts of space. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---