executable_ksm 397 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -o nounset -o errexit -o pipefail -o xtrace
  3. cat /sys/kernel/mm/ksm/use_zero_pages
  4. echo 1 | tee /sys/kernel/mm/ksm/use_zero_pages
  5. cat /sys/kernel/mm/ksm/pages_to_scan
  6. echo 6285 | tee /sys/kernel/mm/ksm/pages_to_scan
  7. cat /sys/kernel/mm/ksm/sleep_millisecs
  8. echo 200 | tee /sys/kernel/mm/ksm/sleep_millisecs
  9. cat /sys/kernel/mm/ksm/run
  10. echo 1 | tee /sys/kernel/mm/ksm/run