Re: [PATCH v8 3/3] selftests/mm: add new selftests for KSM

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

 



On 16.04.23 00:59, Stefan Roesch wrote:
This adds three new tests to the selftests for KSM.  These tests use the
new prctl API's to enable and disable KSM.

1) add new prctl flags to prctl header file in tools dir

    This adds the new prctl flags to the include file prct.h in the
    tools directory.  This makes sure they are available for testing.

2) add KSM prctl merge test to ksm_tests

    This adds the -t option to the ksm_tests program.  The -t flag
    allows to specify if it should use madvise or prctl ksm merging.

3) add two functions for debugging merge outcome for ksm_tests

    This adds two functions to report the metrics in /proc/self/ksm_stat
    and /sys/kernel/debug/mm/ksm. The debug output is enabled with the
    -d option.

4) add KSM prctl test to ksm_functional_tests

    This adds a test to the ksm_functional_test that verifies that the
    prctl system call to enable / disable KSM works.

5) add KSM fork test to ksm_functional_test

    Add fork test to verify that the MMF_VM_MERGE_ANY flag is inherited
    by the child process.

Signed-off-by: Stefan Roesch <shr@xxxxxxxxxxxx>
Cc: Bagas Sanjaya <bagasdotme@xxxxxxxxx>
Cc: David Hildenbrand <david@xxxxxxxxxx>
Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Rik van Riel <riel@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

Thanks!

Acked-by: David Hildenbrand <david@xxxxxxxxxx>

--
Thanks,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux