Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769239
D2777.id7055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
778 B
Referenced Files
None
Subscribers
None
D2777.id7055.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 13:51 (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259428
Default Alt Text
D2777.id7055.diff (778 B)
Attached To
Mode
D2777: Restrict transparent hugepages when tuned isn't installed
Attached
Detach File
Event Timeline
Log In to Comment