diff options
| author | Kefeng Wang <[email protected]> | 2024-04-18 21:56:44 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-05-05 17:53:42 -0700 |
| commit | 80e75021486bd2f6463259c4569e2eb7668ae953 (patch) | |
| tree | ecb9b5780263236d5b28e74f692158b525940ac8 /tools/perf/scripts/python/bin | |
| parent | d21f996b02a027f8915e493ee01370c4610ed2e2 (diff) | |
mm: swapfile: check usable swap device in __folio_throttle_swaprate()
Skip blk_cgroup_congested() if there is no usable swap device since no
swapin/out will occur, Thereby avoid taking swap_lock. The difference
is shown below from perf date of CoW pagefault,
perf report -g -i perf.data.swapon | egrep "blk_cgroup_congested|__folio_throttle_swaprate"
1.01% 0.16% page_fault2_pro [kernel.kallsyms] [k] __folio_throttle_swaprate
0.83% 0.80% page_fault2_pro [kernel.kallsyms] [k] blk_cgroup_congested
perf report -g -i perf.data.swapoff | egrep "blk_cgroup_congested|__folio_throttle_swaprate"
0.15% 0.15% page_fault2_pro [kernel.kallsyms] [k] __folio_throttle_swaprate
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kefeng Wang <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions