diff --git a/src/main.rs b/src/main.rs index ea7493ee3..cf339f760 100755 --- a/src/main.rs +++ b/src/main.rs @@ -4722,7 +4722,9 @@ mod tests { .spawn() .unwrap(); - thread::sleep(std::time::Duration::new(20, 0)); + // Let enough time for the first VM to be spawned, and to make + // sure the PSS measurement is accurate. + thread::sleep(std::time::Duration::new(60, 0)); // Get initial PSS let old_pss = get_pss(child1.id()); @@ -4752,9 +4754,9 @@ mod tests { .unwrap(); // Let enough time for the second VM to be spawned, and to make - // sure KVM has enough time to merge identical pages between the + // sure KSM has enough time to merge identical pages between the // 2 VMs. - thread::sleep(std::time::Duration::new(30, 0)); + thread::sleep(std::time::Duration::new(60, 0)); // Get new PSS let new_pss = get_pss(child1.id());