What is using all this memory?

Oliver Grawert ogra at ubuntu.com
Wed Jun 6 11:16:29 UTC 2012


hi,
On Tue, 05 Jun 2012 12:56:15 -0700
NoOp <glgxg at sbcglobal.net> wrote:

> Try:
> $ ps aux | awk '$11!~/\[*\]/ {print $6/1024" Mb --> "$11,$12,$13,
> $14}' | sort -g
> (all one line of course)
> or
> $ ps ax -o rss,cmd --sort rss
> 
> Courtesy:
> <http://www.commandlinefu.com/commands/view/10476/what-the-hell-is-running-on-easily-snoop-your-systems-ram-consumption>
> 
> For virtual memory:
> 
> $ sudo apt-get install memstat
> $ memstat
> 
> And if you'd like to see the virtual memory assigned to the memory hog
> shown in ps, just get the pid first & then run memstat. Example:
> 
> $ ps x | grep desktop
> $ 2259? Sl 0:05 /usr/bin/plasma-desktop
> $ memstat -p 2259
> 
> http://manpages.ubuntu.com/manpages/precise/man1/memstat.1.html
> $ info /usr/share/doc/memstat/memstat-tutorial.txt.gz
> 
> You can also use vmstat for virtual memory:
> http://manpages.ubuntu.com/manpages/precise/man8/vmstat.8.html
> And a nice write up on how to use it:
> <http://www.linuxjournal.com/article/8178>
> [Monitoring Virtual Memory with vmstat]
> 
> This may also be of help:
> <http://tldp.org/LDP/tlk/mm/memory.html>
> [Chapter 3
> Memory Management]

and for a more enduser friendly overview:

sudo apt-get install htop 

htop will actually show proper values of used RAM as an
unexperienced enduser would expect to see it ...

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120606/68c0ac13/attachment.sig>


More information about the ubuntu-users mailing list