diff --git a/cgconfig.conf b/cgconfig.conf index 539daf1..37315ad 100644 --- a/cgconfig.conf +++ b/cgconfig.conf @@ -24,7 +24,7 @@ group chromium { group java { cpu { - cpu.shares = "2000"; + cpu.shares = "1000"; } memory { @@ -32,3 +32,15 @@ group java { memory.soft_limit_in_bytes = "384M"; } } + +group firefox { + cpu { + cpu.shares = "2000"; + } + + memory { + memory.soft_limit_in_bytes = "3G"; + memory.limit_in_bytes = "4G"; + } +} + diff --git a/cgrules.conf b/cgrules.conf index 2215e31..b131bd3 100644 --- a/cgrules.conf +++ b/cgrules.conf @@ -11,6 +11,8 @@ pgrondek:/usr/bin/google-chrome cpu,memory chromium pgrondek:/home/pgrondek/bin/rambox cpu,memory chromium +pgrondek:/usr/bin/firefox cpu,memory firefox + pgrondek:/home/pgrondek/.sdkman/candidates/java/current/bin/java cpu,memory java pgrondek:/home/pgrondek/.sdkman/candidates/java/11.0.5.hs-adpt/bin/java cpu,memory java pgrondek:/home/pgrondek/.sdkman/candidates/java/11.0.6.hs-adpt/bin/java cpu,memory java