13 lines
374 B
Desktop File
13 lines
374 B
Desktop File
[Unit]
|
|
Description=Disable Transparent Huge Pages
|
|
ConditionPathIsDirectory=/sys/kernel/mm/transparent_hugepage
|
|
|
|
[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"
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|