#81 consider adding uresourced by default
Closed: Fixed 2 years ago by rdieter. Opened 2 years ago by chrismurphy.

I came across this bug report today, which has quite a bit of detail. But the gist is that (a) systemd-oomd sometimes kills all of Firefox on (b) KDE because (c) uresourced is only in comps for workstation-product group. One of the things uresourced does via it's cgroupify functionality, is it automatically splits out web browser processes into their own cgroup so that should the need for oomd to kill a tab, it only kills that tab/process rather than the whole cgroup, i.e. the web browser itself and all tabs.
https://bugzilla.redhat.com/show_bug.cgi?id=1964153

I'm not sure the best way to bring it in for Fedora 34 now though. Note that uresourced project admits it's a short term solution and that a better solution is anticipated.

@benzea


Metadata Update from @ngompa:
- Issue set to the milestone: Fedora 35
- Issue tagged with: experience

2 years ago

Any desktop that uses systemd properly should benefit from uresourced. If systemd is not used, it ultimately just becomes pretty useless (rather than being a disadvantage).

  1. uresourced makes sure that the core session processes have memory guarantees (protection from being swapped out)
  2. the cgroupify part is currently needed together with systemd-oomd so that browsers are not killed as a single entity and instead only the per-tab worker processes will be killed most of the time.

Metadata Update from @siosm:
- Issue assigned to siosm

2 years ago

Requires: uresourced

Please make uresourced optional. I don't want to install it to my system.

Recommends: uresourced should be fine.

Requires: uresourced

Please make uresourced optional. I don't want to install it to my system.

Recommends: uresourced should be fine.

Why? We are using systemd user sessions and we need this to complete the functionality so that systemd-oomd and other things work properly.

Why?

  • Running as root.
  • Written on C, so it may have a lot of security vulnerabilities.
  • Plasma can work without it.

We are using systemd user sessions and we need this to complete the functionality so that systemd-oomd and other things work properly.

Nothing breaks if you don't install uresourced.

That's why I think that Recommends would be enough. Enabled by default on all Fedora installations.

@siosm why add to comps too?

Whoops, sorry, did that in parallel. Had not realized that we were going to add that as a dependency.

Metadata Update from @rdieter:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata