Add systemd resource budgets with TOML profiles

This commit is contained in:
ms2k 2026-10-05 19:19:05 +09:00
commit be8749a384

47
profiles.example.toml Normal file
View file

@ -0,0 +1,47 @@
python = "compute"
terminals = ["gnome-terminal-server.service", "app-org.gnome.Terminal"]
devices = []
[profiles.default]
cpu = "200%"
high = "2G"
memory = "3G"
swap = "1G"
[profiles.compute]
cpu = "400%"
high = "4G"
memory = "6G"
swap = "2G"
[profiles.bulk]
cpu = "200%"
high = "1G"
memory = "2G"
swap = "1G"
[profiles.search]
cpu = "100%"
high = "256M"
memory = "512M"
swap = "0"
[profiles.unrestricted]
cpu = ""
high = "infinity"
memory = "infinity"
swap = "infinity"
[apps]
unrestricted = ["org.gnome.Terminal"]
[units]
unrestricted = ["gnome-terminal-server.service"]
[prefixes]
default = ["snap.firefox.firefox-.scope.d"]
[commands]
rg = "search"
java = "compute"
rsync = "bulk"