linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about free/used memory on Linux
@ 2007-10-21 17:54 Ravinandan Arakali (rarakali)
  2007-10-21 19:00 ` Vaidyanathan Srinivasan
  2007-10-22 10:05 ` Pádraig Brady
  0 siblings, 2 replies; 12+ messages in thread
From: Ravinandan Arakali (rarakali) @ 2007-10-21 17:54 UTC (permalink / raw)
  To: Linux Kernel

Hi kernel gurus,
I am trying to find out the memory that's used on my linux box.
I find that there are quite a few confusing metrics. How do
I find out the "true" used memory ?

1. For eg. "free -m" shows free memory (excluding buffers/caches) 
as 308 MB while I can see(from "df" output) that the the tmpfs 
partitions take up about 400 MB. So, does "free -m" not consider 
the tmpfs partitions ?

2. I try to add up RSS field of all processes reported by
"ps aux" command. But is it true that this would be misleading
in that, shared memory used by, say 2 processes would show
up twice here although there's only one copy in memory. Also
does this consider the fact that there's only one copy
of shared libraries ?

3. I guess "free -m" and "top" commands use /proc/meminfo 
and hence all these outputs are same ?

Thanks,
Ravi

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-11-14 18:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-21 17:54 Question about free/used memory on Linux Ravinandan Arakali (rarakali)
2007-10-21 19:00 ` Vaidyanathan Srinivasan
2007-10-21 20:21   ` Ravinandan Arakali (rarakali)
2007-10-22  5:50     ` Vaidyanathan Srinivasan
2007-10-22  6:28       ` Ravinandan Arakali (rarakali)
2007-11-14  6:14       ` Ravinandan Arakali (rarakali)
2007-11-14 11:58         ` Pádraig Brady
2007-11-14 18:18           ` Ravinandan Arakali (rarakali)
2007-10-22 11:51     ` Helge Hafting
2007-10-22 17:34     ` linux-os (Dick Johnson)
2007-10-22 10:05 ` Pádraig Brady
2007-10-23  1:58   ` Ravinandan Arakali (rarakali)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).