What is using all this memory?
NoOp
glgxg at sbcglobal.net
Tue Jun 5 19:56:15 UTC 2012
On 06/03/2012 03:31 AM, Dotan Cohen wrote:
> After logging into Kubuntu 12.04 64 bit and not starting any programs,
> almost all the computer's memory is taken, and the system is swapping:
>
> - antares:~$ free
> total used free shared buffers cached
> Mem: 2050400 1947624 102776 0 5264 151796
> -/+ buffers/cache: 1790564 259836
> Swap: 2928636 749760 2178876
>
> Top does not show anything unusual. The user's home directory is not
> encrypted. I have disabled Akonadi and Nepomuk. What else should I
> check?
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]
Gary
More information about the ubuntu-users
mailing list