mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan Knutar <jk-lkml@sci.fi>
To: linux-kernel@vger.kernel.org
Cc: Christian Schmidt <lkml@digadd.de>
Subject: Re: Memory consumption on linux
Date: Wed, 2 May 2007 00:00:49 +0300	[thread overview]
Message-ID: <200705020000.49959.jk-lkml@sci.fi> (raw)
In-Reply-To: <4637958F.5010405@digadd.de>

On Tuesday 01 May 2007 22:31, Christian Schmidt wrote:

> And, how does process memory relate to system memory? Usually the sum
> of the resident memory (ps -o rss) is way off from the used memory
> displayed by free.

RSS has all the shared pages in it too.

> where you can see discrepancies in either direction, in one case 2G
> more free than resident, in the other case 60M less.

> Is there a way to get more detailed information on process and kernel
> memory usage? I assume that dm-crypto and software-raid use memory
> that does not show up anywhere.

Slab in /proc/meminfo, I guess. Lots of other values there too.The 
command slabtop -s c too.

> dynamips and vmware both mmap() the ram of the emulated machines
> (dynamips emulates cisco routers). Still, obviously the majority of
> the resident memory is "free", or rather "cached".

mmap() with a backing file is probably counted as "cached". mmap and 
brk() without backing files would probably be AnonPages 
in /proc/meminfo...

  reply	other threads:[~2007-05-01 21:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-01 19:31 Christian Schmidt
2007-05-01 21:00 ` Jan Knutar [this message]
2007-05-02 12:25 ` Andi Kleen
2007-05-02 16:11   ` William Lee Irwin III

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=200705020000.49959.jk-lkml@sci.fi \
    --to=jk-lkml@sci.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@digadd.de \
    /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

all inboxes | Powered by JetHome®