[systemd-devel] Strange behavior of socket activation units

2022-02-06 Thread Tuukka Pasanen

Hello,
I have encountered this kind of problem. This particularly is MariaDB 
10.6 installation to Debian.

Nearly every application that is restarted/started dies on:


Failed to get properties: Unit name mariadb-extra@.socket is missing the 
instance name.
Failed to get properties: Unit name mariadb@.socket is missing the 
instance name.



This is kind of strange as those are for multi target version and should 
not be launched if I don't have mariadb@something.service added or make 
specified systemctl enable mariadb@something.socker which I haven't.
They don't show up in dependencies of mariadb.service or other service 
file?



Sincerely,

Tuukka



[systemd-devel] Which distributions copy systemd-networkd 'link' files into the initramfs?

2022-02-06 Thread Kevin P. Fleming
Is this just a Debian (and derivatives) feature, or more common?

I just spent nearly an hour trying to figure out why the link file
changes I'd made on a system were not working properly, and this was
the cause. I even ran 'networkctl status' on an interface that should
no longer exist, and it reported a 'Link File' path that did not
exist... because it *used* to exist (in /etc, not /usr), and had been
copied into the initramfs.

At a minimum, I'd like to suggest to the relevant distros that they
modify systemd.link(5) to clearly indicate that this behavior exists
and that any changes to link files must be accompanied by an initramfs
update or the behavior on the next system boot may result in a
non-functional network.


Re: [systemd-devel] Udevd and dev file creation

2022-02-06 Thread Greg KH
On Sun, Feb 06, 2022 at 01:43:08PM +0530, Nishant Nayan wrote:
> While reading the code I came across :-
> struct Manager
> struct Worker
> Can you please provide an overview on these, I did not get a clear cut
> explanation on these structs, the code only has its member variables.

Those are the "workers" that handle the uevents that are sent by the
kernel.  Put the program in a debugger to see how they work if you have
questions.

> Also what is the variable 'arg_children_max'
> Why is it specifically set to 8 + no_of_cpus*2 ?

Because based on tuning, that's the "best" number that was come up with.
If in your testing you think it should be different, please submit a
patch.

But note that the current number has been tested to work well on both
single CPU machines, as well as machines with thousands of cpus that
bring hundreds of thousands of devices online all at once when booting.

thanks,

greg k-h


Re: [systemd-devel] Udevd and dev file creation

2022-02-06 Thread Nishant Nayan
While reading the code I came across :-
struct Manager
struct Worker
Can you please provide an overview on these, I did not get a clear cut
explanation on these structs, the code only has its member variables.
Also what is the variable 'arg_children_max'
Why is it specifically set to 8 + no_of_cpus*2 ?


Regards
Nishant Nayan

On Tue, 1 Feb 2022, 14:13 Greg KH,  wrote:

> On Tue, Feb 01, 2022 at 10:08:04AM +0530, Nishant Nayan wrote:
> > Thanks, I will check that out.
> > Is there any site where I can gain in depth code level knowledge of
> > systemd-udevd?
>
> The code is all there for you to read and understand directly.  What
> specific questions did you have that you did not understand after
> reading it?
>
> thanks,
>
> greg k-h
>