From 99e80c5121cf80ba13cc2e19f7cf1167384da60b Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 9 Jun 2016 15:24:03 +0200 Subject: [PATCH] #1 Configure kernel to de-duplicate memory --- tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 0493303..883490b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -65,6 +65,18 @@ notify: - "Re-start NetData" + # Note: copy module doesn't work here because parent directory /sys + # is not writable, not even by root + - name: "Configure KSM" + shell: echo {{ item.value }} >/sys/kernel/mm/ksm/{{ item.file }} + with_items: + - file: 'run' + value: '1' + - file: 'sleep_millisecs' + value: '1000' + notify: + - "Re-start NetData" + - name: "Configure FireQoS" template: src=etc_fireqos_fireqos.conf -- GitLab