Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Barry
> On 31 Mar 2023, at 00:51, Michael Chapman wrote: > > On Fri, 31 Mar 2023, Phillip Susi wrote: >> >> Michael Chapman writes: >> >>> What specifically is the difference between: >>> >>> * swap does not exist at all; >>> * swap is full of data that will not be swapped in for weeks or month

[systemd-devel] How to make vtable entry as SD_BUS_VTABLE_UNPRIVILEGED

2023-03-30 Thread Lal, Arun
Hi All, In file systemd\src\libsystemd\sd-bus\bus-objects.c function check_access has the following check: /* If the member is marked UNPRIVILEGED let's grant access */ if (c->vtable->flags & SD_BUS_VTABLE_UNPRIVILEGED) return 0; Can someone tell me how to set the flag a

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Michael Chapman
On Fri, 31 Mar 2023, Phillip Susi wrote: > > Michael Chapman writes: > > > What specifically is the difference between: > > > > * swap does not exist at all; > > * swap is full of data that will not be swapped in for weeks or months; > > That's the wrong question. Nevertheless it was the quest

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Phillip Susi
Michael Chapman writes: > What specifically is the difference between: > > * swap does not exist at all; > * swap is full of data that will not be swapped in for weeks or months; That's the wrong question. The question is, what is the difference between having NO swap, and having some swap th

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Michael Chapman
On Fri, 31 Mar 2023, Luca Boccassi wrote: [...] > No, it does not make "little difference", there are entire subsystems > which are much worse off, if not completely useless, without swap. > Post-cgroupsv2 memory controller things are considerably different on > this front, and old "common wisdom"

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Phillip Susi
Lennart Poettering writes: > oomd/PSI looks at memory allocation latencies to determine memory > pressure. Since you disallow anonymous memory to be paged out and thus > increase IO on file backed memory you increase the latencies > unnecessarily, thus making oomd trigger earlier. Did this get

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Luca Boccassi
On Thu, 30 Mar 2023 at 11:09, Michael Chapman wrote: > > On Thu, 30 Mar 2023, Luca Boccassi wrote: > > On Thu, 30 Mar 2023 at 10:15, Michael Chapman > > wrote: > > > > > > On Thu, 30 Mar 2023, Lennart Poettering wrote: > > > > On Mi, 29.03.23 13:53, Christoph Anton Mitterer (cales...@scientia.or

Re: [systemd-devel] systemd-networkd: switch between several static network setups on wired connection

2023-03-30 Thread Kevin P. Fleming
On Thu, Mar 30, 2023, at 09:35, f...@igh.de wrote: > [Match] > name = eth0 > SSID = my-wifi > > would that mean, that "my-wifi" must be accessible via that interface > (AND logic) or could that mean we configure "eth0" while "my-wifi" is > visible on any interface (OR logic)? I had h

Re: [systemd-devel] systemd-networkd: switch between several static network setups on wired connection

2023-03-30 Thread fi
Hi Alvin, On 2023-03-29 22:55, Alvin Šipraga wrote: > Hi Torsten, > > On Wed, Mar 29, 2023 at 02:58:05PM +0200, f...@igh.de wrote: > > > > Dear Systemd Folx, > > > > > > > > I have a laptop that I run at different locations with different > > networks. I want to have static(!) network setup (addre

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Michael Chapman
On Thu, 30 Mar 2023, Greg KH wrote: > On Thu, Mar 30, 2023 at 09:09:19PM +1100, Michael Chapman wrote: > > On Thu, 30 Mar 2023, Luca Boccassi wrote: > > > On Thu, 30 Mar 2023 at 10:15, Michael Chapman > > > wrote: > > > > > > > > On Thu, 30 Mar 2023, Lennart Poettering wrote: > > > > > On Mi, 29.

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Greg KH
On Thu, Mar 30, 2023 at 09:09:19PM +1100, Michael Chapman wrote: > On Thu, 30 Mar 2023, Luca Boccassi wrote: > > On Thu, 30 Mar 2023 at 10:15, Michael Chapman > > wrote: > > > > > > On Thu, 30 Mar 2023, Lennart Poettering wrote: > > > > On Mi, 29.03.23 13:53, Christoph Anton Mitterer (cales...@sc

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Michael Chapman
On Thu, 30 Mar 2023, Luca Boccassi wrote: > On Thu, 30 Mar 2023 at 10:15, Michael Chapman wrote: > > > > On Thu, 30 Mar 2023, Lennart Poettering wrote: > > > On Mi, 29.03.23 13:53, Christoph Anton Mitterer (cales...@scientia.org) > > > wrote: > > > > > > > > > That's a bad idea btw. I'd advise yo

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Luca Boccassi
On Thu, 30 Mar 2023 at 10:15, Michael Chapman wrote: > > On Thu, 30 Mar 2023, Lennart Poettering wrote: > > On Mi, 29.03.23 13:53, Christoph Anton Mitterer (cales...@scientia.org) > > wrote: > > > > > > > That's a bad idea btw. I'd advise you not to do that: on modern > > > > > systems you want s

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-30 Thread Michael Chapman
On Thu, 30 Mar 2023, Lennart Poettering wrote: > On Mi, 29.03.23 13:53, Christoph Anton Mitterer (cales...@scientia.org) wrote: > > > > > That's a bad idea btw. I'd advise you not to do that: on modern > > > > systems you want swap, since it makes anonymous memory reclaimable. > > > > I > > > > am