What is using all this memory?

Dotan Cohen dotancohen at gmail.com
Wed Jun 6 16:28:44 UTC 2012


On Tue, Jun 5, 2012 at 10:56 PM, 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)

That line is just gold, Gary. Thank you!


> 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]
>
> Gary
>

Thanks. I will brush up on those topics before I head back over there
this weekend.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com




More information about the ubuntu-users mailing list