Add systemd resource budgets with TOML profiles
This commit is contained in:
commit
be8749a384
1 changed files with 2591 additions and 0 deletions
47
profiles.example.toml
Normal file
47
profiles.example.toml
Normal 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"
|
||||
Loading…
Reference in a new issue