add mongodb role
This commit is contained in:
9
ansible/roles/mongodb/files/disable-thp.service
Normal file
9
ansible/roles/mongodb/files/disable-thp.service
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Disable Transparent Huge Pages (THP)
|
||||
DefaultDependencies=no
|
||||
After=sysinit.target local-fs.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'echo never | tee /sys/kernel/mm/transparent_hugepage/enabled > /dev/null'
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
Reference in New Issue
Block a user