diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2024-04-12 09:47:51 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-05-06 03:53:36 +0300 |
commit | ceca44991f3dd5a67b4e0ded6379c5e93e84cb31 (patch) | |
tree | 4f7ad9b13b913f3a771cd63f9f6a697ceb420429 /lib/cmdline_kunit.c | |
parent | 1f2d8b4421bd0da2c97fb8bad5cc85fc929fef64 (diff) | |
download | linux-ceca44991f3dd5a67b4e0ded6379c5e93e84cb31.tar.xz |
mm: filemap: batch mm counter updating in filemap_map_pages()
Like copy_pte_range()/zap_pte_range(), make mm counter batch updating in
filemap_map_pages(), since folios type are same(MM_SHMEMPAGES or
MM_FILEPAGES) in filemap_map_pages(), only check the first folio type is
enough, the 'lat_pagefault -P 1 file' test from lmbench shows 12%
improvement, and the percpu_counter_add_batch() is gone from perf flame
graph.
Link: https://lkml.kernel.org/r/20240412064751.119015-3-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/cmdline_kunit.c')
0 files changed, 0 insertions, 0 deletions