Re: [systemd-devel] Parent slices and resource control

2020-06-02 Thread Patrick Dimond
On Mon, Jun 01, 2020 at 12:22:03PM +0200, Lennart Poettering wrote:
> Consider this tree:
> 
> -.slice
> `- foo.slice
> |  `- miau.service
> `- bar.slice
> |  `- bar-quux.slice
> |  |  `- daemon.service
> |  |  `- otherdaemon.service
> |  `- bar-uuu.slice
> | ` rumpel.service
> `- zzz.slice
>`- zzz-yyy.slice
>   `- wuff.service
> 
> And now you turn on memory accounting in daemon.service. This would
> then propagate up the three, so you get memory accounting on all its
> parents too: bar-quux.slice, bar.slice and -.slice. And you will get
> it turned on forthe units immediately in throse, i.e. also in
> otherdaemon.service, bar-uuu.slice, foo.slice, zzz.slice. However, it
> will not be turned on in: miau.service, rumpel.service, zzz-yyy.slice
> and wuff.service, since those are neither in the path to the root
> slice nor immediately inside any of those slices.
> 
> Makes sense?
> 
> Lennart
> 
> --
> Lennart Poettering, Berlin

Yes! The diagram really helped. 

I think including a diagram like that would be helpful for others too.
I'm not sure where it should live or what the process is, but I'd be 
happy to put in the work to make that happen.

Thanks,
Pat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Logind: how to access a device when you're not the session controller

2020-06-02 Thread Pekka Paalanen
On Tue, 26 May 2020 16:55:19 +0300
Pekka Paalanen  wrote:

> Hi,
> 
> I'm looking at letting Weston's 'meson test' run DRM-backend tests
> automatically and without the need of root privileges. I have a spare
> DRM device in my machine that is dedicated for this purpose, so I make
> my normal desktop environment not touch it. My problem is, is there any
> way to set up things so that logind would give Weston access to that
> DRM device while my normal desktop is active?

Hi,

is there a more appropriate forum for logind questions?


Thanks,
pq


pgpTPPBg4t1m9.pgp
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel