List what programs are using memory

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

List what programs are using memory

Postby viking60 » 27 Sep 2014, 10:04

I can see my memory use with

Code: Select all

free

But this does not show what programs are using it.
on a vanilla Linux install that is not easy but there is a little program that solves the problem:
ps_mem
Install it and after that you can simply do a

Code: Select all

sudo ps_mem

(or ps_mem as root)

It will list all the programs using memory with the top perpetrators at the bottom.
:A

Code: Select all

  4.1 MiB +   6.6 MiB =  10.7 MiB       smbd (2)
 10.5 MiB + 273.5 KiB =  10.8 MiB       ntpd
 11.0 MiB + 275.0 KiB =  11.3 MiB       polkitd
 11.9 MiB + 476.5 KiB =  12.4 MiB       pekwm
 13.5 MiB +   1.3 MiB =  14.8 MiB       nacl_helper
 13.0 MiB +   2.1 MiB =  15.1 MiB       tint2
 12.5 MiB +   2.6 MiB =  15.2 MiB       systemd-journald
 14.1 MiB +   1.3 MiB =  15.4 MiB       glances
 14.4 MiB +   2.6 MiB =  17.1 MiB       xfce4-notifyd
  3.2 MiB +  14.4 MiB =  17.6 MiB       mdm-binary (2)
 17.9 MiB +   2.9 MiB =  20.8 MiB       cryptkeeper
 21.1 MiB + 639.5 KiB =  21.8 MiB       miniserv.pl
  9.2 MiB +  13.9 MiB =  23.1 MiB       monitorix-httpd
 12.0 MiB +  15.3 MiB =  27.3 MiB       /usr/bin/monito
 23.3 MiB +   5.2 MiB =  28.5 MiB       octopi-notifier
 31.2 MiB +   3.7 MiB =  34.8 MiB       guake
 35.8 MiB +   2.4 MiB =  38.2 MiB       xpad
 63.3 MiB +   1.8 MiB =  65.1 MiB       Xorg
 94.9 MiB + 134.5 KiB =  95.0 MiB       mysqld
177.5 MiB + 661.5 KiB = 178.1 MiB       idesk
263.0 MiB +  25.4 MiB = 288.4 MiB       salt-master (9)
903.0 MiB + 138.2 MiB =   1.0 GiB       chromium (24)
---------------------------------
                          2.0 GiB
=================================
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
Snorkasaurus
Berserk
Posts: 587
Joined: 30 Dec 2013, 19:19
Contact:

Re: List what programs are using memory

Postby Snorkasaurus » 27 Sep 2014, 20:40

My head almost popped when I scrolled down and saw that last one. :-)
S.

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: List what programs are using memory

Postby viking60 » 27 Sep 2014, 21:35

+1 Yup it has been greedy lately (but I had a lot of tabs open).
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"


Return to “Tips & Tricks”