mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2896] Cgroup2 support/migration #1810
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1810
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hammerandtongs on GitHub (Aug 9, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2896
In looking to use https://github.com/facebookincubator/oomd/ to solve the memory pressure issues that occur on linux desktops https://lkml.org/lkml/2019/8/4/15 (note that turning off swap is not necessary to trigger this pathology) it comes that oomd is designed with cgroup2 in mind.
from man cgroups
What are the implications for the current implementation of firejail?
Can it run successfully with a cgroup2 memory controller?
What would need to be done to the codebase to migrate to cgroup2 in an orderly way?
@netblue30 commented on GitHub (Aug 18, 2019):
We will have to redo all the cgroups support, thanks.
@hammerandtongs commented on GitHub (Aug 22, 2019):
Fedora 31 has a plan to migrate to cgroupsv2
https://fedoraproject.org/wiki/Changes/CGroupsV2
The tracking bug is -
https://bugzilla.redhat.com/show_bug.cgi?id=1732114
I'm not a Fedora user but it seems like they should know this would cause Firejail problems.
I didn't find any activity in the Ubuntu launchpad around cgroupsv2
Also
Systemd 243 RC2 ""The unified cgroup hierarchy (cgroupsv2) is now the default.
Use systemd.unified-cgroup-hierarchy=0 on the kernel command line to
undo this change."""
None of this keeps me from using firejail, it's just more fwiw (I'm going to explore a "pkill chromium" to the pressure stall kernel bits to solve my oom issues ).
@martinetd commented on GitHub (Nov 30, 2021):
For whoever stumbles upon this and would like to add a cgroup for e.g. memory limitation, the easiest probably is to just leave the cgroup management to systemd and have firejail inherit it e.g. something like this:
(--scope makes the command behave like a normal process, e.g. it inherits the env and exits when the child command exits)
which has the bonus that you can query its usage through systemctl status: