Debian Codegraph @

ansible_collections/community/mongodb/roles/mongodb_linux/files/thp-disable.service

raw
1 [Unit]
2 Description=Disable Transparent Huge Pages
3 DefaultDependencies=no
4 After=sysinit.target local-fs.target
5 Before=mongod.service
6
7 [Service]
8 Type=oneshot
9 ExecStart=/bin/sh -c '\
10 for thp in /sys/kernel/mm/*transparent_hugepage; do \
11 echo never | tee $thp/enabled > /dev/null && \
12 echo never | tee $thp/defrag > /dev/null; \
13 done'
14
15 [Install]
16 WantedBy=multi-user.target