mbox series

[v2,0/2] KSM: support smart-scan feature

Message ID 20231201210930.2651725-1-shr@devkernel.io (mailing list archive)
Headers show
Series KSM: support smart-scan feature | expand

Message

Stefan Roesch Dec. 1, 2023, 9:09 p.m. UTC
This patch series makes two changes:
- Disable the smart-scan feature for ksm01 - ksm04
  This is necessary to make sure that the volatile metrics have the
  expected counts.
- Add a new test for the smart-scan feature
  The new test verifies that the smart-scan feature skips pages when it has
  been enabled for a VMA.

Versions:
- V2:
  - Disable smart_scan in the test setup structure
  - Remove the changes in create_same_memory()
  - Add the new testcase ksm07 for the smart scan test
  

Stefan Roesch (2):
  mem: disable KSM smart scan for ksm tests
  add ksm test for smart-scan feature

 testcases/kernel/mem/.gitignore    |  1 +
 testcases/kernel/mem/include/mem.h |  1 +
 testcases/kernel/mem/ksm/ksm01.c   |  2 +
 testcases/kernel/mem/ksm/ksm02.c   |  2 +
 testcases/kernel/mem/ksm/ksm03.c   |  2 +
 testcases/kernel/mem/ksm/ksm04.c   |  2 +
 testcases/kernel/mem/ksm/ksm07.c   | 69 +++++++++++++++++++++++++++++
 testcases/kernel/mem/lib/mem.c     | 70 ++++++++++++++++++++++++++++++
 8 files changed, 149 insertions(+)
 create mode 100644 testcases/kernel/mem/ksm/ksm07.c


base-commit: 8c89ef3d451087ed6e18750bd5eedd10e5ab3d2e