summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorYang Shi <shy828301@gmail.com>2020-12-15 04:13:09 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-15 21:13:45 +0100
commitc77c5cbafe549eb330e8909861a3e16cbda2c848 (patch)
tree33783592b24532cdb051af449046c1f3cd069ca8 /mm/mempolicy.c
parentmm: migrate: simplify the logic for handling permanent failure (diff)
downloadlinux-c77c5cbafe549eb330e8909861a3e16cbda2c848.tar.xz
linux-c77c5cbafe549eb330e8909861a3e16cbda2c848.zip
mm: migrate: skip shared exec THP for NUMA balancing
The NUMA balancing skip shared exec base page. Since CONFIG_READ_ONLY_THP_FOR_FS was introduced, there are probably shared exec THP, so skip such THPs for NUMA balancing as well. And Willy's regular filesystem THP support patches could create shared exec THP wven without that config. In addition, the page_is_file_lru() is used to tell if the page is file cache or not, but it filters out shmem page. It sounds like a typical usecase by putting executables in shmem to achieve performance gain via using shmem-THP, so it sounds worth skipping migration for such case too. Link: https://lkml.kernel.org/r/20201113205359.556831-4-shy828301@gmail.com Signed-off-by: Yang Shi <shy828301@gmail.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Jan Kara <jack@suse.cz> Cc: Mel Gorman <mgorman@suse.de> Cc: Michal Hocko <mhocko@suse.com> Cc: Song Liu <songliubraving@fb.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions