How do I determine how much memory (including swap space) is really in use?
I have "top" on my machine which shows this:
Memory: 4096M real, 64M free, 4336K swap in use, 1020M swap free
One would deduce from this that there is about 8G (4G RAM + 4G swap) in use.
But when I use "/usr/proc/bin/pmap -x <PID>" for every process on the system and sum up all the total Kbytes columns or do a "ps -el" and sum up all the SZ columns (and multiply by the pagesize: 8192) both tell me that all the processes on the system are taking up a total of about 1.25G of memory.
My question is, where the hell has the other 6.5G gone???
Is what "top" is telling me wrong? Are the "pmap" and "ps" commands wrong? What am I missing?
I have "top" on my machine which shows this:
Memory: 4096M real, 64M free, 4336K swap in use, 1020M swap free
One would deduce from this that there is about 8G (4G RAM + 4G swap) in use.
But when I use "/usr/proc/bin/pmap -x <PID>" for every process on the system and sum up all the total Kbytes columns or do a "ps -el" and sum up all the SZ columns (and multiply by the pagesize: 8192) both tell me that all the processes on the system are taking up a total of about 1.25G of memory.
My question is, where the hell has the other 6.5G gone???
Is what "top" is telling me wrong? Are the "pmap" and "ps" commands wrong? What am I missing?