Re: What is using all this memory?



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



--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: [Lit.] Buffer overruns
    ... > floating point support or a memory expansion option. ... had virtual memory support grafted on. ... > where the modified instruction was fetched from. ... vis-a-vis the official coporate strategic operating system TSS/360. ...
    (sci.crypt)
  • Re: scf /scannow & INFO in Event Viewer
    ... I know all about restore to ... pagefile to a low end of 2, ... The memory used by the user's ... Virtual Memory: Total paging file size for all drives is 2046MB ...
    (microsoft.public.windowsxp.general)
  • Re: virtual memory
    ... you can have virtual memory ... that software transparent swapping requires virtual memory. ... (since swapping it into physical memory is all or nothing). ...
    (comp.arch.embedded)
  • Re: Do I need a Page File?
    ... Intel designes the virtual memory. ... >> unlimited amounts of RAM, we wouldn't even NEED a paging file. ...
    (microsoft.public.windowsxp.general)
  • Re: Is There a Way to Remove a Module From Memory"
    ... "mapped" into virtual memory. ... to unload them from your virtual memory if they're no longer being accessed. ... I think "loaded on demand" is here referring to a machine code module, ... The default in Visual Basic is to compile code on demand. ...
    (microsoft.public.vb.general.discussion)