Re: calculating process memory usage

2020-08-15 Thread Florian Weimer
* Samuel Sieb: > Since you've brought this up, this is a question I've had for a long > time. How do you get real memory+swap usage information for processes > or is that even possible? Looking in ps or top, the RES is way too > small and the VIRT/VSIZE is way too big. ps_mem is also way

Re: calculating process memory usage

2020-08-14 Thread Samuel Sieb
On 8/14/20 4:34 PM, Samuel Sieb wrote: On 8/14/20 1:52 PM, Chris Murphy wrote: /proc/pid/status VmHWM or  VmRSS + VmSwap Yes, thank you! VmHWM is not so useful for this case, but certainly for others. Comparing with the "top" numbers, the VmRSS total looks slightly high, depending on how

Re: calculating process memory usage

2020-08-14 Thread Samuel Sieb
On 8/14/20 1:52 PM, Chris Murphy wrote: /proc/pid/status VmHWM or VmRSS + VmSwap Yes, thank you! VmHWM is not so useful for this case, but certainly for others. Comparing with the "top" numbers, the VmRSS total looks slightly high, depending on how zswap factors in to the numbers. The

Re: calculating process memory usage

2020-08-14 Thread Chris Murphy
On Fri, Aug 14, 2020 at 2:29 PM Samuel Sieb wrote: > > On 8/14/20 11:41 AM, Sergio Belkin wrote: > > Perhaps this ps_mem snippet is useful: > > > Private + Shared = RAM used Program > > > > > > > > 294.8 MiB + 4.7 MiB = 299.4 MiB telegram-desktop.bin > > 290.3 MiB +

Re: calculating process memory usage

2020-08-14 Thread Samuel Sieb
On 8/14/20 11:41 AM, Sergio Belkin wrote: Perhaps this ps_mem snippet is useful: 294.8 MiB +   4.7 MiB = 299.4 MiB       telegram-desktop.bin 290.3 MiB +  22.1 MiB = 312.4 MiB       rocketchat-desktop (5) 323.8 MiB +   9.5 MiB = 333.2 MiB       kwin_x11 (9) 344.5 MiB +   1.4 MiB = 345.8