]> Git Repo - linux.git/commit
mm: migrate: skip shared exec THP for NUMA balancing
authorYang Shi <[email protected]>
Tue, 15 Dec 2020 03:13:09 +0000 (19:13 -0800)
committerLinus Torvalds <[email protected]>
Tue, 15 Dec 2020 20:13:45 +0000 (12:13 -0800)
commitc77c5cbafe549eb330e8909861a3e16cbda2c848
tree33783592b24532cdb051af449046c1f3cd069ca8
parentdd4ae78a21fc05d91d841e499dddd057ad64a4df
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/[email protected]
Signed-off-by: Yang Shi <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/migrate.c
This page took 0.040751 seconds and 4 git commands to generate.