bigbluebutton-Github/build/packages-template/bbb-html5/disable-transparent-huge-pages.service

13 lines
374 B
SYSTEMD
Raw Normal View History

2021-08-13 18:53:18 +08:00
[Unit]
Description=Disable Transparent Huge Pages
2022-04-01 22:43:48 +08:00
ConditionPathIsDirectory=/sys/kernel/mm/transparent_hugepage
2021-08-13 18:53:18 +08:00
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/bin/echo "never" | tee /sys/kernel/mm/transparent_hugepage/enabled"
ExecStart=/bin/sh -c "/bin/echo "never" | tee /sys/kernel/mm/transparent_hugepage/defrag"
2022-04-01 22:43:48 +08:00
RemainAfterExit=yes
2021-08-13 18:53:18 +08:00
[Install]
WantedBy=multi-user.target