Re: VSZ from cgroup interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 04, 2023 at 09:52:28PM +0200, Felip Moll <lipixx@xxxxxxxxx> wrote:
> Well, I understand it is a per-process resource as any other field you
> can check in /sys/fs/cgroup/../memory.stat.

Those fields are machine (owned) resources consumed by processes (e.g.
(anon) pages (but this file has a mixture of types of values)).

> Can you develop on why you say vsz of one process is not exclusive to
> another's vsz?

One process can have a vaddrs in range say 1G..2G, that is 1G vsz (and
can be much less of rss).
Another process can have very same (nominal) range, 1G vsz again. That
is 2G of vsz in total but nothing needs to be actually consumed (for
backing pages, whose number can further vary depending on possible
sharing).

> Technically, the sum of all VSZ would give an estimation of how much
> memory a set of processes might try to use. I think that's the same
> idea of VSZ for a single process but just for a set of processes.
> This could be useful to detect memleaks on a program before they
> happen when you see a huge VSZ.

Ah, now I see where you're coming from. That could be a new field in
memory.stat.

Regards,
Michal

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux