You are not logged in.

#1 2024-09-27 23:23:26

GeneArch
Member
Registered: 2013-07-28
Posts: 89

Display memory used by processes

I made this little script to help me get the total memory consumed by 1 or more processes.
There's currently a bug in webkit which is used by evolution that creates many many webkit processes and they use up real memory - webkit bug]
So i needed a simple way to decide when to see how bad the memory usage is so I know when to restart evolution (which kills the webkit processes).

Example:

  process-mem -i '^webkit' 'evolution' 'bwrap'
                           Proc-Name : [num]      rss      vsz      shr
                           evolution : [  1]   559.5M    74.6G   224.9M
                WebKitNetworkProcess : [  2]   304.5M   133.4G   239.2M
                               bwrap : [ 98]   143.5M   271.4M   132.0M
                    WebKitWebProcess : [ 48]     9.7G     3.1T     8.5G
                               Total : [149]    10.6G     3.3T     9.0G

Defaults to matching processes owned by current user but can be specified. Process names matching is optionally case insensitive and supports regex.

Availabe in AUR
Source is in Github

Offline

Board footer

Powered by FluxBB