Re: calculating process memory usage

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

 



On Fri, Aug 14, 2020 at 2:29 PM Samuel Sieb <samuel@xxxxxxxx> wrote:
>
> On 8/14/20 11:41 AM, Sergio Belkin wrote:
> > Perhaps this ps_mem snippet is useful:
> > <snip
> > Private  +   Shared  =  RAM used       Program
> > </snip>
> > ....
> > <snip>
> > 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 MiB       nextcloud
> > 373.2 MiB +  21.2 MiB = 394.4 MiB       spotify (5)
> > 416.6 MiB +   1.3 MiB = 417.9 MiB       plasma-discover
> > 448.5 MiB +  16.6 MiB = 465.2 MiB       MainThread
> > 892.8 MiB + 444.5 KiB = 893.2 MiB       packagekitd
> >    1.0 GiB +   8.6 MiB =   1.0 GiB       plasmashell
> >    1.9 GiB +  81.0 MiB =   1.9 GiB       Web Content (9)
> > ---------------------------------
> >                            9.7 GiB
> > =================================
>
> 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 too small,
> or at least the total is less than half of the real memory usage.  Is
> there something else using that much memory that isn't processes?
> buffers and cache don't account for the difference either.


Maybe ...

/proc/pid/status

VmHWM or  VmRSS + VmSwap


-- 
Chris Murphy
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux