Re: [systemd-devel] Low memory dbus signal for GMemoryMonitor

2023-11-13 Thread Lennart Poettering
On Di, 14.11.23 15:00, Kate Hsuan (h...@redhat.com) wrote:

> Hi Folks,

Hi!

> Could systemd detect the system's low memory status and send a signal
> through Dbus about low memory events?

We already have an interface for this, it's documented here:

https://systemd.io/MEMORY_PRESSURE

It doesn't operate via D-Bus however, but instead just tells apps how
to directly get the events from the kernel. That's generally better
than bumping the events off two daemons (i.e. a memory pressure daemon
and a dbus broker), simply because memory pressure is a problem of
latency, and you should not add additional steps to the notifications
if you want to make things better and not worse. Moreover, on memory
pressure you shouldn't allocate more memory, which is something the
indirection through a daemon and broker would typically mean.

> We are looking for a new backend for GMemoryMonitor.
> https://developer-old.gnome.org/gio/stable/GMemoryMonitor.html
>
> The original backend- low-memory-monitor monitors the system memory
> usage. When it detects the memory is lower than a level, it signals
> the application. It also manages the kernel OOM.

It should be possibly to implement a GMemoryMonitor on top of the
kernel APIs directly, using the information systemd gives you. See the
documentation. It even briefly mentions GMemoryMonitor at the end.

If you have any questions about details, feel free to ask!

Lennart

--
Lennart Poettering, Berlin


[systemd-devel] Low memory dbus signal for GMemoryMonitor

2023-11-13 Thread Kate Hsuan
Hi Folks,

Could systemd detect the system's low memory status and send a signal
through Dbus about low memory events?
We are looking for a new backend for GMemoryMonitor.
https://developer-old.gnome.org/gio/stable/GMemoryMonitor.html

The original backend- low-memory-monitor monitors the system memory
usage. When it detects the memory is lower than a level, it signals
the application. It also manages the kernel OOM.

Thank you :)
-- 
BR,
Kate



Re: [systemd-devel] Service user

2023-11-13 Thread Andy Pieters
On Mon, 13 Nov 2023 at 11:38, Tomas Krajco  wrote:

> I'm trying to run docker daemon with service user account from Active
> Directory through sssd daemon. Can you please tell me how to achieve this?
>
>
Hi Thomas

This is not a mailing list that will do all of your work for you.

Please research your subjects, docker, AD, sshd, try a  few things, show us
the service files you have created and the output.
Also include the systemd version you use, and the operating system flavour
and versions.

We will help you fix issues in your files, but you have to come up with
them in the first place.


[systemd-devel] Service user

2023-11-13 Thread Tomas Krajco
Hello

I'm trying to run docker daemon with service user account from Active
Directory through sssd daemon. Can you please tell me how to achieve this?

Best Regards
Tomas Krajco


[systemd-devel] Service user on systemd

2023-11-13 Thread Tomas Krajco
Hello

I new to systemd

Best Regards
Tomas