A System and Service Manager
Go to file
Zbigniew Jędrzejewski-Szmek 1320fc3009 oomd: stop monitoring user-*.slice slices
... (rhbz#2177722)

Oomd was killing a login session (user-*.slice/session-*.scope).

Quoting https://bugzilla.redhat.com/show_bug.cgi?id=2177722#c21:

> In F37 and prior the config was killing based on swap and pressure
> on user-*.slice/user@.service. In 7665e1796f
> it was changed to pressure only on system.slice and all slices under
> user.slice. The relevant point here is that this change now includes
> user-*.slice/session-*.scope which is the critical session bits
> you're seeing killed here.
>
> That session scope should be omitted. The config that I intended
> with the initial PR was for all slices under
> user.slice/user-*.slice/user@.service to be monitored, not for all
> slices under user.slice.

With the file removed:

$ oomctl | rg Path | sort
  Path: /system.slice
  Path: /user.slice/user-1000.slice/user@1000.service/app.slice
  Path: /user.slice/user-1000.slice/user@1000.service/session.slice
2023-03-29 18:17:29 +02:00
tests Improve tests structure 2020-08-27 08:13:25 +02:00
.gitignore Add script to mail inactive maintainers 2021-02-11 13:08:32 +01:00
.zuul.yaml Add zuul configuration to exclude standalone sub-packages in install test 2021-02-05 16:20:52 +00:00
10-oomd-defaults.conf Increase oomd user memory pressure limit to 50% for 20s (#1941170) 2021-03-30 12:11:37 +02:00
10-oomd-per-slice-defaults.conf Update systemd-oomd defaults to friendlier values 2022-09-30 14:49:03 +00:00
10-timeout-abort.conf Set TimeoutStopFailureMode=abort for services 2023-02-22 16:03:38 +01:00
20-yama-ptrace.conf Add example file with yama config 2015-07-05 22:52:35 -04:00
98-default-mac-none.link fix comment instructions for 98-default-mac-none.link 2023-02-21 14:51:35 +00:00
265.patch Really fix build with gnu-efi-3.0.11-13 2023-03-03 20:11:48 +01:00
465d48dfa23ef01ce1888e440f24b3d22d633a60.patch Include two more patches that didn't make it into the stable tag 2023-03-03 20:14:38 +01:00
26494.patch Add workaround patch for dracut generator issue 2023-02-21 11:06:27 +01:00
changelog Manually bump release and add changelog for previous commit 2022-08-19 15:49:11 -04:00
fedora-use-system-auth-in-pam-systemd-user.patch Use upstream pam systemd-auth file with a patch, add pam_keyinit 2022-12-14 22:35:52 +01:00
fef2e88b92287aa97ce21eee22aca0c74dfa6570.patch Include two more patches that didn't make it into the stable tag 2023-03-03 20:14:38 +01:00
inittab Add /etc/inittab and /etc/crypttab 2014-10-07 15:51:56 -04:00
libsystemd-shared.abignore Version 251-rc1 2022-03-29 22:41:15 +02:00
macros.sysusers Add the sysusers compat parts 2020-02-10 17:19:18 +01:00
owner-check.sh owner-check: make sending of mails optional 2021-03-30 12:11:34 +02:00
owner-check.template Add script to mail inactive maintainers 2021-02-11 13:08:32 +01:00
purge-nobody-user Add purge-nobody-user 2018-02-21 15:23:30 +01:00
README.build-in-place.md Fix formatting of README.build-in-place 2022-05-30 16:53:38 +02:00
rpminspect.yaml Add rpminspect file to skip failing tests 2021-02-02 15:22:41 +01:00
sources Version 253.1 2023-03-03 18:28:25 +01:00
split-files.py Move /usr/lib/systemd/boot/ to systemd-boot-unsigned subpackage 2023-03-09 09:05:16 +01:00
sysctl.conf.README Steal sysctl.conf from initscripts 2014-10-07 15:51:56 -04:00
systemd-journal-gatewayd.xml Add firewalld port descriptions 2015-01-05 22:46:35 -05:00
systemd-journal-remote.xml Add firewalld port descriptions 2015-01-05 22:46:35 -05:00
systemd-udev-trigger-no-reload.conf Prevent systemd-udev-trigger.service from restarting 2016-10-07 07:55:56 -04:00
systemd.rpmlintrc Add abignore file to make abigail happy 2020-04-11 10:37:42 +02:00
systemd.spec oomd: stop monitoring user-*.slice slices 2023-03-29 18:17:29 +02:00
sysusers.attr Add the sysusers compat parts 2020-02-10 17:19:18 +01:00
sysusers.generate-pre.sh Support user:group notation by sysusers.generate-pre.sh script 2022-11-24 13:35:27 +01:00
sysusers.prov sysusers/provides: parse and output static IDs 2021-11-16 16:36:58 +00:00
triggers.systemd Run sysusers and friends also if systemd is not running 2022-05-16 22:11:21 +02:00
use-bfq-scheduler.patch patch: fix regression in bfq patch 2022-09-30 19:01:28 +02:00
yum-protect-systemd.conf Also protect systemd-udev from removal 2016-03-15 15:34:52 -04:00

Building systemd rpms for local development using rpmbuild --build-in-place

This approach is based on filbranden's git-rpmbuild and his talk during ASG2019.

git clone https://github.com/systemd/systemd
fedpkg clone systemd fedora-systemd
cd systemd
rpmbuild -bb --build-in-place --noprep --define "_sourcedir $PWD/../fedora-systemd" --define "_rpmdir $PWD/rpms" --with inplace ../systemd.spec
sudo dnf upgrade --setopt install_weak_deps=False rpms/*/*.rpm

--without lto and --without tests may be useful to speed up the build.