public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: "Ravinandan Arakali (rarakali)" <rarakali@cisco.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Question about free/used memory on Linux
Date: Mon, 22 Oct 2007 11:05:27 +0100	[thread overview]
Message-ID: <471C75E7.2070400@draigBrady.com> (raw)
In-Reply-To: <FA6FB5FA4DA6BF4386D129273B2E3EC3024B847B@xmb-sjc-214.amer.cisco.com>

Ravinandan Arakali (rarakali) wrote:
> 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 ?

Have a look at this script so show RAM used by programs:
http://www.pixelbeat.org/scripts/ps_mem.py

Note to display totals you will need this patch applied:
http://lkml.org/lkml/2007/8/13/1224

Pádraig.

  parent reply	other threads:[~2007-10-22 10:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-10-23  1:58   ` Ravinandan Arakali (rarakali)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471C75E7.2070400@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rarakali@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox