From 1aba7f6b0dd5dc2cb0a7b9eb637787e0bf1e180c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Fri, 3 Apr 2020 19:10:25 +0200 Subject: [PATCH] Add firefox --- cgconfig.conf | 14 +++++++++++++- cgrules.conf | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) 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