[systemd-devel] Sharing processes across services

2016-09-13 Thread Michal Koutný
Hello, I wonder why does systemd allow mapping PID->service to be non-unique. Currently one PID can belong up to two services (manager->watch_pids{1,2}). If more than one why just two? And when can such a situation happen? I was able to attain this only by subverting content of the PID file

Re: [systemd-devel] Sharing processes across services

2016-09-19 Thread Michal Koutný
On 09/14/2016 01:31 AM, Michal Koutny wrote: > Currently one PID can belong up to two services > (manager->watch_pids{1,2}). If more than one why just two? And when can > such a situation happen? I've found origin of this change in [1]. Still, I wonder why it is "interesting to map a PID to two

[systemd-devel] Dependencies on DBus activated services during shutdown

2018-01-08 Thread Michal Koutný
but denies the elegance of the lazy (implicit) activation. Are there any better ways how to deal with this? Thanks, Michal Koutný P.S. FTR, in my case A.service=libvirtd.service and B.service=systemd-machined.service. [1] https://github.com/systemd/systemd/blob/master/src/core/dbus.c#L169

Re: [systemd-devel] Dependencies on DBus activated services during shutdown

2018-01-08 Thread Michal Koutný
On 01/08/2018 05:52 PM, Simon McVittie wrote: > Does A.service even need B.service during shutdown if it has not > previously interacted with (=> started) B.service? That's not correct implication, due to concurrency, B.service may be stopped before A.service. > On Mon, 08 Jan 2018 at 16:53:04

Re: [systemd-devel] Dependencies on DBus activated services during shutdown

2018-01-08 Thread Michal Koutný
On 01/08/2018 08:04 PM, Andrei Borzenkov wrote: > If systemd could infer that A requested B to be started it could also > add implicit ordering between A and B. Yes, this would be a way to the complete solution where all dependencies are tracked (however, I'm not sure it's achievable).

Re: [systemd-devel] Newer videos

2018-01-22 Thread Michal Koutný
On 01/21/2018 03:21 PM, Cecil Westerhof wrote: > I wanted to dive deeper into systemd. So I sought videos on YouTube. [...] > But that one is 2½ years old. Is there something more recent? https://media.ccc.de/c/asg2017 Cheers, Michal signature.asc Description: OpenPGP digital signature

Re: [systemd-devel] systemd-logind failing due to dbus error on org.freedesktop.systemd1

2018-02-02 Thread Michal Koutný
On 02/01/2018 01:18 PM, Colin Guthrie wrote: > If it's ybbind that's causing issues, then chances are it's related to > the NSS setup, i.e. /etc/nsswitch.conf and other related config specific > to Yellow Pages stuff (I forget what they are as it's been > 10years > since I used it!) +1, I don't

Re: [systemd-devel] systemd-logind failing due to dbus error on org.freedesktop.systemd1

2018-01-31 Thread Michal Koutný
Hello Gustavo. On 01/31/2018 03:36 PM, Gustavo Sousa wrote: > After a system upgrade, Was dbus-daemon restarted as part of the upgrade? > I've posted the output of 'journalctl -xe' regarding the error > here: https://pastebin.com/TNmg2z9s Was it fixed when

Re: [systemd-devel] systemd-logind failing due to dbus error on org.freedesktop.systemd1

2018-01-31 Thread Michal Koutný
On 01/31/2018 03:55 PM, Gustavo Sousa wrote: > Unfortunately, no. I didn't actually wait for the auto restart, I > tried myself with 'systemctl restart systemd-logind'. It seems like systemd-logind was thus properly connected to dbus and there may be other issue. Could you please post logs

Re: [systemd-devel] Controlling user processes with systemd+cgroups

2018-02-08 Thread Michal Koutný
Hello systemd-devel. Short summary from the old thread: On 06.09.15 16:14, Lennart Poettering [1]: > Ultimately our goal is that you build your tree of slices, and then > freely attach users, services, containers, VMs to these slices at the > places you want them. You can already do that nicely

Re: [systemd-devel] /var/log/journal full, journald is not removing journal files

2018-07-12 Thread Michal Koutný
Hi Chris. On 07/11/2018 09:44 PM, Chris Murphy wrote: > Somehow journald would not > delete its own files until I had deleted a few manually. Indeed, see man page update [1] added recently for more details. I assume your space was occupied by active journal files. Do you have any detailed break

Re: [systemd-devel] Create a target unit to start & stop a group of services

2018-02-26 Thread Michal Koutný
On 02/26/2018 11:08 AM, Michal Sekletar wrote: > Unfortunately, we don't have a dependency (AFAIK) that only propagates > stop actions. FTR (not helpful for the original problem), there exists ConsistsOf= as an inverse of PartOf= dependency. However, it's read only currently (or strictly

Re: [systemd-devel] Debugging active timers that do not trigger

2018-11-15 Thread Michal Koutný
On 11/8/18 11:46 AM, Andrei Borzenkov wrote: > It is possible that system never ends booting. Do you have any pending > jobs (systemctl list-jobs)? What "systemctl is-system-running" says? I don't think this is the case. The OnBootSec= is taken relatively to the instant when the kernel started

Re: [systemd-devel] systemctl start second.service first.service

2019-01-18 Thread Michal Koutný
Thanks for your exhaustive reply, Jonathon. On Tue, Jan 08, 2019 at 04:02:47AM +0530, Jonathon Kowalski wrote: > [...] > I think systemctl should do something similar to that, internally > create a transient target unit through manager's bus API, add Wants= > (which gives it implicit After=) on

Re: [systemd-devel] systemctl start second.service first.service

2019-01-07 Thread Michal Koutný
(Bringing up an older one.) On 1/15/18 2:20 AM, 林自均 wrote: > I've filed https://github.com/systemd/systemd/issues/7877 for this. There's also accompanying RFE at [1]. I've looked into that and arrived at design/implementation crossroads. I'd be happy for any ideas/feedback on that GH issue.

Re: [systemd-devel] Allocating resource to achieve predictable run times

2019-06-20 Thread Michal Koutný
Hi. On Mon, Jun 17, 2019 at 02:15:19PM +0100, John Lane wrote: > I am trying to meet a requirement to have predictable execution of jobs. > [...] > When I say "container" I mean "an environment with reserved resources". > I have been looking at using cgroups both directly and via systemd. >

[systemd-devel] Password agent for user services

2019-05-13 Thread Michal Koutný
Hello, I was pondering a user service that would ask for password via the password agent infrastructure (as there is systemd-gnome-ask-password-agent it could be quite integrated with the desktop environment) as an alternative to saving it in (Gnome) keyring. Naïve experiment with > [Service] >

Re: [systemd-devel] Delegate v1 cgroup controller permissions

2019-07-11 Thread Michal Koutný
On Thu, Jun 20, 2019 at 02:19:34PM +0200, Lennart Poettering wrote: > Sorry, but there is not, it's not safe, as documented. The doc [1] says: > Think twice before delegating cgroup v1 controllers to less privileged > containers. It’s not safe, you basically allow your containers to > freeze

Re: [systemd-devel] set-property CPUAffinity

2019-09-03 Thread Michal Koutný
Hello Alexey. On Fri, Aug 30, 2019 at 01:21:50PM +0300, Alexey Perevalov wrote: > [...] > The question is: changing CPUAffinity property (cpuset.cpus) is not yet > allowed in systemd API, right? Is it planned? Note that CPUAffinity= uses the mechanism of sched_setaffinity(2) which is

Re: [systemd-devel] Empty /sys/fs/cgroup/cpu directory post reboot

2019-09-26 Thread Michal Koutný
Hello Tarana. On Wed, Sep 11, 2019 at 12:17:51PM +, " TARANA, YASHASHVI " wrote: > I noticed that, once, after reboot, the directory /sys/fs/cgroup/cpu > was empty. The directories for indvidual cgroups are only created based on demand (the directory path suggests you use the legacy or

Re: [systemd-devel] [nspawn] Could you plz explain me, about resources

2020-03-06 Thread Michal Koutný
Hello. On Sat, Feb 15, 2020 at 07:33:52PM +0300, Хиль Эдуард wrote: > Hi there! I am new for containers and i try systemd-nspawn . I created my > first container with >   > MemoryHigh=100M > MemoryMax=100M > MemorySwapMax=1M >   > but _inside_ container i see all host resources (for example — 

Re: [systemd-devel] Per user limit defaults in systemd.conf

2020-09-01 Thread Michal Koutný
Hello. On Mon, Aug 31, 2020 at 05:34:15PM -0700, Joshua Miller wrote: > Is there a way to set per-user defaults for values in systemd.conf? I don't think so. The config values are typically independent of the running user. > I'm looking for a way to do what's done via pam_limits per

Re: [systemd-devel] [RFE] distinguish reclaimable memory in `systemctl status` output

2020-09-29 Thread Michal Koutný
On Mon, Sep 28, 2020 at 02:29:07PM -0700, Vito Caputo wrote: > Is it possible to either add a reclaimable field the total memory line > of `systemctl status` output? > > Or perhaps a separate line like Memory-Reclaimable: ? What would be the use of such an output? > Is additional kernel memcg

Re: [systemd-devel] No signal sent to stop service

2020-08-10 Thread Michal Koutný
Hi David. On Thu, Aug 06, 2020 at 01:59:03PM +1200, David Cunningham wrote: > The systemd file is as below, and we've confirmed that the PIDFile contains > the correct PID when the stop is attempted. Would anyone have any > suggestions on how to debug this? Thank you in advance. Is the given

Re: [systemd-devel] Problem understanding output of systemd-cgtop

2020-08-10 Thread Michal Koutný
Hello. On Mon, Aug 03, 2020 at 10:31:28AM +0200, Ulrich Windl wrote: > Why is systemd-cgtop outputting much less slices than systemd-cgls > does? Specifically I don't see the slice for the process I'm examining > ("system-iotwatch.slice"). systemd-cgls shows it with three services. systemd-cgls

Re: [systemd-devel] No signal sent to stop service

2020-08-13 Thread Michal Koutný
Hello David. On Tue, Aug 11, 2020 at 02:33:11PM +1200, David Cunningham wrote: > The problem is most likely with systemd thinking the program is stopped > because "systemctl status" reports: > Aug 10 03:57:32 myhost systemd[1]: product_routed.service: Main process > exited, code=exited,

Re: [systemd-devel] [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-06-24 Thread Michal Koutný
On Wed, Jun 24, 2020 at 01:54:56PM +0200, Christian Brauner wrote: > Yep, I already have a fix for this in my tree based on a previous > report from LTP. Perfect. (Sorry for the noise then.) Thanks, Michal signature.asc Description: Digital signature

Re: [systemd-devel] [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-06-24 Thread Michal Koutný
Hi. On Tue, May 05, 2020 at 04:04:31PM +0200, Christian Brauner wrote: > -SYSCALL_DEFINE2(setns, int, fd, int, nstype) > +SYSCALL_DEFINE2(setns, int, fd, int, flags) > [...] > - file = proc_ns_fget(fd); > - if (IS_ERR(file)) > - return PTR_ERR(file); > + int err = 0; >

Re: [systemd-devel] Grouping services in systemd..

2020-06-04 Thread Michal Koutný
Hi. (Not sure if it's still pertinent.) On Tue, Apr 07, 2020 at 10:23:22AM +0530, nitish nagesh wrote: > In fact i did try a similar approach of assigning CPUShares to a slice. > Basically i separated these critical services into a new slice & > assigned a CPUShare=8192. > However with this i

Re: [systemd-devel] kernel messages not making it to journal

2020-06-04 Thread Michal Koutný
Hi. On Mon, Jun 01, 2020 at 07:11:15PM -0600, Chris Murphy wrote: > But journalctl does not show it at all. Seems like it might be a bug, > I expect it to be recorded in the journal, not only found in dmesg. Journald fetches dmesg messages too (see jounrald.conf:ReadKMsg=). It's not clear

Re: [systemd-devel] systemd-user-sessions.service: Failed to create cgroup /system.slice/systemd-user-sessions.service: No such file or directory

2020-06-04 Thread Michal Koutný
Hi. Is this still relevant? On Sun, May 10, 2020 at 08:51:09AM -0700, Nebu Pookins wrote: > Specifically, the systemd-user-sessions service is failing with the > following messages: The cgroup hierarchy is built in-memory on each boot based on your configuration. I'm skeptical how the outage

Re: [systemd-devel] name=systemd cgroup mounts/hierarchy

2020-11-23 Thread Michal Koutný
On Thu, Nov 19, 2020 at 10:14:18PM +0300, Andrei Enshin wrote: > For you it might be interesting in sake of improving robustness of > systemd in case of such invaders as kubelet+cgroupfs : ) I think the interface is clearly defined in the CGROUP_DELEGATION document though. I'm happy if a bug can

Re: [systemd-devel] name=systemd cgroup mounts/hierarchy

2020-11-18 Thread Michal Koutný
Thanks for the details. On Mon, Nov 16, 2020 at 09:30:20PM +0300, Andrei Enshin wrote: > I see the kubelet crash with error: «Failed to start ContainerManager failed > to initialize top level QOS containers: root container [kubepods] doesn't > exist» > details:

Re: [systemd-devel] name=systemd cgroup mounts/hierarchy

2020-11-19 Thread Michal Koutný
Hi. On Wed, Nov 18, 2020 at 09:46:03PM +0300, Andrei Enshin wrote: > Just out of curiosity, how systemd in particular may be disrupted with > such record in root of it’s cgroups hierarchy as /kubpods/bla/bla > during service (de)activation? > Or how it may disrupt the kubelet or workload running

Re: [systemd-devel] name=systemd cgroup mounts/hierarchy

2020-11-13 Thread Michal Koutný
Hello. On Thu, Nov 12, 2020 at 08:05:34PM +0300, Andrei Enshin wrote: > There are few nodes after k8s update started to have (maybe it was > before) a problem with the following mount: What exact problem do you see? > It was taken from /proc/self/mountinfo What was 'self'? > May I ask, does

Re: [systemd-devel] How to correctly use memory controls (MemoryLow) on unified hierarchy system?

2021-05-26 Thread Michal Koutný
On Fri, May 21, 2021 at 08:14:03PM +0300, Andrei Borzenkov wrote: > That's overkill for my purposes. This is single user system and all I am > trying to do is to prevent swapping out Wayland composer to avoid > waiting several minutes to unblank screen. I am fine with setting values > once.

Re: [systemd-devel] How to correctly use memory controls (MemoryLow) on unified hierarchy system?

2021-05-26 Thread Michal Koutný
On Fri, May 21, 2021 at 03:25:05PM +0300, Andrei Borzenkov wrote: > Is it necessary to explicitly set it on every ancestor? It depends against what reclaim you want to be protected. Global memory reclaim (running out of RAM) -> set it on every ancestor. Cgroup memory reclaim (hitting memory

Re: [systemd-devel] Concurrent login / daemon-reload produces abandoned sessions

2021-07-12 Thread Michal Koutný
On Fri, Jul 09, 2021 at 11:42:22AM +0200, Nicolas Bock wrote: > I have already opened an issue [1] but it was closed. Maybe > we can just re-open it? FWIW, https://github.com/systemd/systemd/pull/20199 Michal signature.asc Description: Digital signature

Re: [systemd-devel] Restricting swap usage for a process managed via systemd

2021-07-08 Thread Michal Koutný
Hello Debraj. On Thu, Jul 08, 2021 at 05:10:44PM +0530, Debraj Manna wrote: > >> Linux vrni-platform 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 > >> UTC 2021 x86_64 x86_64 x86_64 GNU/Linux > [...] > GRUB_CMDLINE_LINUX="audit=1 rootdelay=180 nousb net.ifnames=0 biosdevname=0 >

Re: [systemd-devel] Concurrent login / daemon-reload produces abandoned sessions

2021-07-08 Thread Michal Koutný
Hello Nicolas. On Wed, Jul 07, 2021 at 02:12:51PM +0200, Nicolas Bock wrote: > Using systemd-248.3-1ubuntu1 on Ubuntu Impish the following > script produces multiple abandoned sessions: > > $ for i in {1..100}; do sleep 0.2; ssh localhost sudo systemctl > daemon-reload & ssh localhost

Re: [systemd-devel] systemctl start seems to hang with no status

2021-11-04 Thread Michal Koutný
Hello. On Fri, Oct 22, 2021 at 01:28:28PM +0200, Ulrich Windl wrote: > Interestingly I wouldn't expect "Reached target System Time Synchronized.". The deps are a bit backwards (but not the job ordering): ntp-wait.service Wants=time-sync.target Before=time-sync.target I.e. the

Re: [systemd-devel] Automatically moving forked processes in a different cgroup based on children's UID

2022-01-07 Thread Michal Koutný
Hello Wadih. On Sat, Jan 01, 2022 at 04:41:12PM -0500, Wadih wrote: > Is there a way to automatically classify child processes of a process > in a different cgroup than the spawning process with systemd based on > the children's new UID? I know apache2-mpm-itk calls setuid() on its > children,

Re: [systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

2022-03-16 Thread Michal Koutný
On Wed, Mar 16, 2022 at 05:06:28PM +0100, Lennart Poettering wrote: > > That owner would be a process -- bang, you created a service with > > delegation or a scope with "keepalive" process. > > can't parse this. That was meant as a humorous proof by contradiction that delegation on slices is

Re: [systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

2022-03-15 Thread Michal Koutný
On Tue, Mar 15, 2022 at 04:35:12PM +0100, Felip Moll wrote: > Meaning that it would be great to have a delegated cgroup subtree without > the need of a service or scope. > Just an empty subtree. It looks appealing to add Delegate= directive to slice units. Firstly, that'd prevent the use of the

Re: [systemd-devel] Restarting "onshot" services

2022-03-01 Thread Michal Koutný
Hello. On Thu, Feb 24, 2022 at 03:35:13PM +0100, Ulrich Windl wrote: > Is that intentional? It was, see https://github.com/systemd/systemd/commit/10e72727ee (perhaps some other commits too, this was the first that popped up on me). > (systemd 228 of SLES12 SP5) The commmit above is from

Re: [systemd-devel] From dbus notification, how to know service entered failed state and will not start without admin action

2022-03-01 Thread Michal Koutný
Hello. On Sat, Feb 19, 2022 at 09:28:18AM +0530, Prashantkumar dhotre wrote: > I see that in OnFailure behaviour is changed and these units in OnFailure > gets triggerd when service is failed-and-will-not-restart-automatically. >

Re: [systemd-devel] learning how to run systemd in a container, journal shows errors I would like to understand what they mean and why

2022-03-25 Thread Michal Koutný
Hello Masber. On Fri, Mar 25, 2022 at 11:52:33AM +, masber masber wrote: > I have a k8s cluster with docker as container runtime and am I trying > to make systemd to work. > I read this doc >

[systemd-devel] Versioning generated files?

2022-03-31 Thread Michal Koutný
Hello. After adding a new DBus property I noticed failing test check-directives, with handful of messages like: > Looks like test/fuzz/fuzz-unit-file/directives.service hasn't been updated I'm looking into tools/check-directives.sh and there's a function generate_directives(). It feels like

Re: [systemd-devel] Restart SystemD service when Memory Usage in More than a threshold

2023-09-18 Thread Michal Koutný
Hello Ahmad. On Sat, Sep 16, 2023 at 09:29:07PM +0600, Ahmad Ismail wrote: > The file in ~/.config/autostart which autostart the service is: ^^^ > So, I came up with a systemd service which will restart nemo-desktop when > memory usage is 100MB. Is the bug you mention a memory

Re: [systemd-devel] oomd wake-up frequency

2023-08-25 Thread Michal Koutný
Hello. On Tue, Aug 22, 2023 at 01:59:52PM -0700, Christian Hergert wrote: > The primary thing I see showing up when profiling an idle system is oomd. My > casual reading through the code would lead me to believe it's waking up a > CPU every .15 seconds. That coincides with swap monitoring

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-12 Thread Michal Koutný
Hi. On Mon, Jul 11, 2022 at 06:26:44PM +0530, Ani A wrote: > but somehow only with the services that I am trying to rate-limit > (C,unix daemons), it doesn't work! :( Does your service crash later than the demo service terminates? (I.e. you may not reach the sufficient fail rate for start limit

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-12 Thread Michal Koutný
On Tue, Jul 12, 2022 at 03:36:55PM +0530, Ani A wrote: > Demo services work fine, the actual service is quite heavy and takes > time to startup. > > > you may not reach the sufficient fail rate for start limit to kick > I didn't get this part. I meant that your values might have corresponded to

Re: [systemd-devel] cgroupsv2 and realtime processes

2022-06-06 Thread Michal Koutný
Hello Michał. On Sun, Jun 05, 2022 at 03:28:23PM +0200, Michał Zegan wrote: > I have kernel 5.17 on archlinux. How is your kernel configured wrt CONFIG_RT_GROUP_SCHED? > Is that still true? That depends :-) > Yet, checking /proc/(pid)/cgroup states these processes are not in a root >

Re: [systemd-devel] cgroupsv2 and realtime processes

2022-06-06 Thread Michal Koutný
On Mon, Jun 06, 2022 at 04:54:03PM +0200, Michał Zegan wrote: > this note pointed to in the readme is quite cgroups v1 specific, I believe > what it describes was true in v1, and v2 does not have any capability to > control realtime processes in non root cgroups if I read correctly. Yes. And it

Re: [systemd-devel] Unable to check 'effective' cgroup limits

2022-06-09 Thread Michal Koutný
Hello. On Thu, Jun 09, 2022 at 11:40:02AM +0100, Lewis Gaul wrote: > [Disclaimer: cross posting from > https://github.com/containers/podman/discussions/14538] > > Apologies that this is more of a Linux cgroup question than specific to > systemd, but I was wondering if someone here might be

Re: [systemd-devel] cgroupsv2 and realtime processes

2022-06-06 Thread Michal Koutný
On Mon, Jun 06, 2022 at 05:59:32PM +0200, Michał Zegan wrote: > I assume if it would be on it would break any and all realtime > usage...? Most likely (you'd not be able either: turn on RT policy, migrate the process or enable CPU controller, i.e. a step that'd lead to an invalid state). I'm

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-14 Thread Michal Koutný
Hello. On Thu, Jul 14, 2022 at 09:29:37PM +0530, Ani A wrote: > StartLimitIntervalUSec=5min 20s > StartLimitBurst=5 > StartLimitAction=none > > The time is sufficient for 5 restarts, but still daemon keeps restarting! > > Scheduled restart job, restart counter is at 6 If the 5

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-22 Thread Michal Koutný
On Fri, Jul 22, 2022 at 06:14:11PM +0530, Ani A wrote: > Found the issue, posting here to close this thread (and possibly help > someone who might land in this situation!) Thanks for sharing. > The daemon which had issues with rate-limit, was invoking some > `systemctl stop/start ` > commands

Re: [systemd-devel] Starting transient services securely from other service without root

2022-04-27 Thread Michal Koutný
Hello Vašek. On Mon, Apr 25, 2022 at 10:45:34AM +0200, Vašek Šraier wrote: > TL;DR: I want to start transient system services from another system > service via DBus. All services should have as little privileges as > possible, definitely not root. How can I do that securely? PolicyKit popped

Re: [systemd-devel] Relationship between cgroup hierarchy and slice names

2022-05-10 Thread Michal Koutný
Hello. On Tue, May 03, 2022 at 08:16:48PM -0400, Yeongjin Kwon wrote: > I'm trying to override the parent slice of a certain slice unit so I can > reorganize the cgroup hierarchy. I'm wondering is the certain slice or its parent any of the systemd implicit slices

Re: [systemd-devel] Q: A way to log peak memory footprint of deactivating units?

2022-08-18 Thread Michal Koutný
Hello. On Sat, Aug 13, 2022 at 04:39:50AM -0500, Russell Haley wrote: > Since systemd logs the total CPU time used when the unit deactivates, I > wonder if there's a way to make it log the peak memory footprint too, > kind of like the time command's "maxresident". The unit does have >

Re: [systemd-devel] systemctl hangs with 249.7 systemd in yocto Honister release

2023-01-04 Thread Michal Koutný
On Wed, Jan 04, 2023 at 07:13:59PM +0800, Heyi Guo wrote: > Jan 04 16:10:57 ali2600 systemd[1]: Caught , dumped core as pid 7516. > Jan 04 16:10:57 ali2600 systemd[1]: Freezing execution. > Jan 04 16:10:57 ali2600 phosphor-dump-manager[7536]: Failed to list units: > Transport endpoint is not

Re: [systemd-devel] Container restart issue: Failed to attach 1 to compat systemd cgroup

2023-01-12 Thread Michal Koutný
Hello. On Tue, Jan 10, 2023 at 03:28:04PM +, Lewis Gaul wrote: > I can confirm that the container has permissions since executing a 'mkdir' > in /sys/fs/cgroup/systemd/machine.slice/libpod-.scope/ inside the > container succeeds after the restart, so I have no idea why systemd is not >

Re: [systemd-devel] Container restart issue: Failed to attach 1 to compat systemd cgroup

2023-01-12 Thread Michal Koutný
On Thu, Jan 12, 2023 at 03:31:25PM +, Lewis Gaul wrote: > Could you suggest commands to run to do this? # systemd-analyze set-log-level debug # logger MARK-BEGIN # ...whatever restart commands # ...wait for the failure # logger MARK-END # systemd-analyze set-log-level info # journalctl -b |

Re: [systemd-devel] systemctl hangs with 249.7 systemd in yocto Honister release

2023-01-04 Thread Michal Koutný
On Wed, Jan 04, 2023 at 04:51:22PM +0800, Heyi Guo wrote: > The issue happened again, but the /proc/1/stack and > /proc/$pid_of_dbus-broker/stack are both empty on our platform. (You reported previously the version was v249 (which is behind the last two upstream versions, so it may be a good

Re: [systemd-devel] systemd-cgtop doesn't show Input/Output

2022-12-05 Thread Michal Koutný
Hello. On Mon, Dec 05, 2022 at 09:38:18AM +0300, Vladimir Mokrozub wrote: > $ systemctl --version > systemd 245 (245.4-4ubuntu3.19) > +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP > +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN > +PCRE2

Re: [systemd-devel] systemctl hangs with 249.7 systemd in yocto Honister release

2022-12-01 Thread Michal Koutný
Hello Heyi. On Tue, Nov 29, 2022 at 12:44:12PM +0800, Heyi Guo wrote: > Is there any known issue which will cause this problem? Or do you have any > suggestion on how to debug? As written in the report, it looks like dbus-daemon or PID1 itself not responding. Some insights may be obtained by

Re: [systemd-devel] Error while trying to boot kernel

2022-12-01 Thread Michal Koutný
Hi. On Sat, Nov 26, 2022 at 11:37:09PM +0200, Nikolay Borisov wrote: > I'm booting it inside qemu but I use ubuntu to create the initrd, as can be > seen from the > attached log everything works up until switch root has to happen and then I > get a > SIGTERM and booting dies. Why do you

Re: [systemd-devel] Issues with parallelised early boot

2022-12-01 Thread Michal Koutný
Hello Naïm. On Sat, Nov 26, 2022 at 01:59:53PM +0100, Naïm Favier wrote: > When using systemd as PID 1 in the initrd, there is no sequencing between > loading kernel modules > (systemd-modules-load.service) and starting udev (systemd-udevd.service). > I load my graphics driver (amdgpu) with

Re: [systemd-devel] systemctl, unclear error msg/warning, "Refusing to accept PID outside of service control group..."

2022-11-03 Thread Michal Koutný
Hi. On Thu, Oct 27, 2022 at 10:46:38PM +0200, rop wrote: >"New main PID x does not belong to service, and PID file is not > owned by root. Refusing." > And when trying to examine the pid-file, it wasn't even created. That'd suggest that the service has misconfigured PIDFile= path (not

Re: [systemd-devel] Best practise for creating sockets without a corresponding service

2022-11-03 Thread Michal Koutný
Hello. On Fri, Oct 28, 2022 at 12:39:01PM +0200, Simon Mullis wrote: > Step 0 > - service_data_gen => creates N outputs > > Step 1 > - service1@.service => N instances are created but don't actually need > to do anything. > - service1@.socket => N sockets are created which are the target FIFOs

Re: [systemd-devel] Cannot mount /sys/kernel/debug in nspawn container

2023-03-24 Thread Michal Koutný
Hello. On Sun, Mar 19, 2023 at 07:16:56PM +, Martin wrote: > Any idea, what I might missing? Permissions? (Incresing logging verbosity may give you some hints. [1][2]) > PS: My ultimate goal is to run bpftrace in the container. Seems to be > slightly tricky. I wouldn't call it a

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-24 Thread Michal Koutný
On Wed, Mar 15, 2023 at 09:43:37AM +0100, Stephan Bergmann wrote: > Any thoughts? Luca's idea of temporary units may work for your runtime differentiation. Although, I was thinking of a another use of such a "tagging" mechanism -- systemd-coredump could skip processing of certain coredumps to

Re: [systemd-devel] Smooth upgrades for socket activated services

2023-03-01 Thread Michal Koutný
Hello Mike. On Mon, Feb 20, 2023 at 11:05:41AM +0100, Mike Hearn wrote: > 2. Is it possible to run two versions of a service unit at once such > that the old version finishes handling connections and then shuts > down, whilst new connections are being handled by the new version? This is a

Re: [systemd-devel] setting cpulimit/iolimit on mysql thread not entire process

2023-12-20 Thread Michal Koutný
Hello. On Tue, Nov 28, 2023 at 08:35:29AM +0200, Mantas Mikulėnas wrote: > 1) the limits are per-cgroup and the entire service is a single cgroup; They could create own service unit for the DB with Delegate=cpu,io and create a subtree manually. > 2) the threads are created by mysqld, That^^

Re: [systemd-devel] What are Abandon() and AbandonScope() used for?

2024-01-30 Thread Michal Koutný
Hello. On Tue, Jan 23, 2024 at 04:40:35PM +0100, Felip Moll wrote: > Can somebody give me an insight of what these methods really do? > The documentation is pretty vague: > https://www.freedesktop.org/wiki/Software/systemd/dbus/ Those would most probably pair with

Re: [systemd-devel] Handle device node timeout?

2024-01-30 Thread Michal Koutný
On Tue, Jan 16, 2024 at 04:06:46PM +0200, Mikko Rapeli wrote: > I have services which depend on a specific device node. How can I run > some recovery actions when the default 90s timeout for finding this > device is hit? (Not sure if it is the best practice to do a plain-text fall back in case

Re: [systemd-devel] umount fails on system with huge (2TiB) buff/cache

2024-01-30 Thread Michal Koutný
Hello. On Fri, Jan 26, 2024 at 12:13:34PM +, Holger Kiehl wrote: ... > Note it states 'no limit' and one can see after some minutes it says > it umounted /mnt/u2: ... > Confused here since it stated on serial console output > >[ OK ] Unmounted /mnt/u2. Any chance your mount unit has

Re: [systemd-devel] Forking service behind socket and service.

2024-04-02 Thread Michal Koutný
Hello. On Wed, Mar 27, 2024 at 07:35:19AM +, Steve Traylen wrote: > In particular I want the socket to close once the fork happens. > If the service is Type=forking things do work but socket is persisted > - that's not great for thing doing the original submission. It expects > the socket

Re: [systemd-devel] ExecReload and dynamic arguments (start control process with arguments)

2024-04-02 Thread Michal Koutný
Hello. On Mon, Mar 04, 2024 at 06:47:42PM +0400, Vadim Nevorotin wrote: > One of them - how to support different "reload" modes? We need to start > some control process in the context of service (like ExecReload does), but > this process supports some arguments and we need to pass them in time