-
- Downloads
rmap: support file thp
Naive approach: on mapping/unmapping the page as compound we update ->_mapcount on each 4k page. That's not efficient, but it's not obvious how we can optimize this. We can look into optimization later. PG_double_map optimization doesn't work for file pages since lifecycle of file pages is different comparing to anon pages: file page can be mapped again at any time. Link: http://lkml.kernel.org/r/1466021202-61880-11-git-send-email-kirill.shutemov@linux.intel.com Signed-off-by:Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- include/linux/rmap.h 1 addition, 1 deletioninclude/linux/rmap.h
- mm/huge_memory.c 7 additions, 3 deletionsmm/huge_memory.c
- mm/memory.c 2 additions, 2 deletionsmm/memory.c
- mm/migrate.c 1 addition, 1 deletionmm/migrate.c
- mm/rmap.c 35 additions, 13 deletionsmm/rmap.c
- mm/util.c 6 additions, 0 deletionsmm/util.c
Loading
Please register or sign in to comment