Re: [RFC PATCH 1/6] mm: huge_memory: add new debugfs interface to trigger split huge page on any page range.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 11/11/20 12:40 PM, Zi Yan wrote:
From: Zi Yan <ziy@xxxxxxxxxx>

Huge pages in the process with the given pid and virtual address range
are split. It is used to test split huge page function. In addition,
a testing program is added to tools/testing/selftests/vm to utilize the
interface by splitting PMD THPs.

Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>
---
  mm/huge_memory.c                              |  98 +++++++++++
  mm/internal.h                                 |   1 +
  mm/migrate.c                                  |   2 +-
  tools/testing/selftests/vm/Makefile           |   1 +
  .../selftests/vm/split_huge_page_test.c       | 161 ++++++++++++++++++
  5 files changed, 262 insertions(+), 1 deletion(-)
  create mode 100644 tools/testing/selftests/vm/split_huge_page_test.c

Don't forget to update ".gitignore" to include "split_huge_page_test".



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux