Page MenuHomeDevCentral

D2777.id7054.diff
No OneTemporary

D2777.id7054.diff

diff --git a/roles/paas-docker/kernel/init.sls b/roles/paas-docker/kernel/init.sls
--- a/roles/paas-docker/kernel/init.sls
+++ b/roles/paas-docker/kernel/init.sls
@@ -7,6 +7,7 @@
# -------------------------------------------------------------
{% if grains['os_family'] == 'RedHat' %}
+{% if salt['file.file_exists']("/etc/tuned") %}
/etc/tuned/paas-docker:
file.directory
@@ -21,4 +22,13 @@
- onchanges:
- file: /etc/tuned/paas-docker/tuned.conf
+{% else %}
+
+# /sys/kernel allows to write settings and display the selected one in []
+restrict_hugepages:
+ cmd.run:
+ - name: echo madvise > /sys/kernel/mm/transparent_hugepage/enabled
+ - unless: grep -q "\[madvise\]" /sys/kernel/mm/transparent_hugepage/enabled
+
+{% endif %}
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 13:51 (9 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259428
Default Alt Text
D2777.id7054.diff (778 B)

Event Timeline