Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KSMConfig.cleanup: Ensure ksm to be disabled at the end of the case #3705

Merged
merged 2 commits into from
Jul 11, 2023

Commits on Jun 15, 2023

  1. KSMController.is_ksm_running: Strip the output to avoid failure

    The output of `process.run("cat /sys/kernel/mm/ksm/run").stdout_text`
    is '0\n', which does not match numeric only string, the make the
    function always returns `True`.
    
    Signed-off-by: Yihuang Yu <[email protected]>
    PaulYuuu committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    1c4b016 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2023

  1. KSMConfig.cleanup: Ensure ksm to be disabled at the end of the case

    In the `cleanup` function, "start_ksmtuned" will start the
    ksmtuned.service, it controls and tunes the ksm service, but depends on
    the KSM_MONITOR_INTERVAL. So ksm is not closed immediately, but at some
    time in KSM_MONITOR_INTERVAL loop. Without this fix, the next test case
    may launch the guest with ksm enabled, which is not expected.
    
    Signed-off-by: Yihuang Yu <[email protected]>
    PaulYuuu committed Jul 4, 2023
    Configuration menu
    Copy the full SHA
    a41e37e View commit details
    Browse the repository at this point in the history