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

2020-12-19 Thread Lennart Poettering
On Mo, 28.09.20 14:29, Vito Caputo (vcap...@pengaru.com) wrote:

> Hello list,
>
> Inspired by recent, unnecessarily combative discussion on the list, I
> thought I'd try restart this conversation anew:
>
> 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: ?
>
> Is additional kernel memcg support required to make this possible?
> (I admittedly haven't made any effort to explore implementation yet)

We can expose what the kernel provides us with. If the kernel already
exposes this, we can certainly expose this as dbus property too. Plese
file an RFE issue on github about that if so.

Lennart

--
Lennart Poettering, Berlin
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2020-09-29 Thread Vito Caputo
On Tue, Sep 29, 2020 at 06:05:00PM +0200, Michal Koutný wrote:
> 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?
> 

Having some sense of how much memory is really free for application
use including what's reclaimable is particularly valuable WRT
understanding a service's proximity to OOM thresholds.

> > Is additional kernel memcg support required to make this possible?
> I think you can get a reasonable picture by checking memory.stat of
> the given memory cgroup, however, I'm not sure it can be losslessly
> translated into a single value like that.
> 

Something approximate could be sufficient, even if it is lossy/racy.

Cheers,
Vito Caputo
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


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 support required to make this possible?
I think you can get a reasonable picture by checking memory.stat of
the given memory cgroup, however, I'm not sure it can be losslessly
translated into a single value like that.

Michal


signature.asc
Description: Digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel