diff options
author | Simon Rettberg | 2023-08-02 14:45:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-08-02 14:45:10 +0200 |
commit | dff841530793a9b847e8a3fc37be8675250ba64a (patch) | |
tree | 028a5ba030cde63ee3965eb7ff0f15e09047140c /core/modules/system-tweaks | |
parent | Add more log output to a couple of systemd startup scripts (diff) | |
download | mltk-dff841530793a9b847e8a3fc37be8675250ba64a.tar.gz mltk-dff841530793a9b847e8a3fc37be8675250ba64a.tar.xz mltk-dff841530793a9b847e8a3fc37be8675250ba64a.zip |
[system-tweaks] Move a few more specific things to bwlp-stage4-tweaks
Diffstat (limited to 'core/modules/system-tweaks')
4 files changed, 0 insertions, 38 deletions
diff --git a/core/modules/system-tweaks/data/etc/systemd/system/general-system-tweaks.service b/core/modules/system-tweaks/data/etc/systemd/system/general-system-tweaks.service deleted file mode 100644 index 8bf67972..00000000 --- a/core/modules/system-tweaks/data/etc/systemd/system/general-system-tweaks.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Apply general system tweaks - -[Service] -ExecStart=/opt/openslx/scripts/systemd-general_system_tweaks -Type=oneshot -RemainAfterExit=true diff --git a/core/modules/system-tweaks/data/etc/systemd/system/multi-user.target.wants/general-system-tweaks.service b/core/modules/system-tweaks/data/etc/systemd/system/multi-user.target.wants/general-system-tweaks.service deleted file mode 120000 index 11e1b73f..00000000 --- a/core/modules/system-tweaks/data/etc/systemd/system/multi-user.target.wants/general-system-tweaks.service +++ /dev/null @@ -1 +0,0 @@ -../general-system-tweaks.service
\ No newline at end of file diff --git a/core/modules/system-tweaks/data/opt/openslx/pam/hooks/auth-final-exec.d/99-compact-memory.sh b/core/modules/system-tweaks/data/opt/openslx/pam/hooks/auth-final-exec.d/99-compact-memory.sh deleted file mode 100755 index 6d35a3cc..00000000 --- a/core/modules/system-tweaks/data/opt/openslx/pam/hooks/auth-final-exec.d/99-compact-memory.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/ash - -# Compact memory now once at start of graphical session, -# So VM will have as much contiguous blocks available -# as possible. -if [ "$PAM_TTY" = ":0" ]; then - echo 1 > /proc/sys/vm/compact_memory -fi -exit 0 diff --git a/core/modules/system-tweaks/data/opt/openslx/scripts/systemd-general_system_tweaks b/core/modules/system-tweaks/data/opt/openslx/scripts/systemd-general_system_tweaks deleted file mode 100755 index cab11765..00000000 --- a/core/modules/system-tweaks/data/opt/openslx/scripts/systemd-general_system_tweaks +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/ash - -# General stuff - -# Breaks performance with certain workloads, so disable. -# See https://unix.stackexchange.com/a/185172 for details and further references -echo never > /sys/kernel/mm/transparent_hugepage/defrag -echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag -# New player in town doing pretty much the same, tame it -echo 1 > /proc/sys/vm/compaction_proactiveness # default 20 -# Don't swap to easily -echo 10 > /proc/sys/vm/swappiness - -# run-parts-like stuff -DIR="$0.d" -if [ -d "$DIR" ]; then - for file in "$DIR"/*; do - [ -x "$file" ] && "$file" - done -fi -exit 0 |