All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
To: linux-kernel@vger.kernel.org
Subject: memory allocation: smap large "Size", but unused
Date: Tue, 27 Nov 2012 19:28:52 +0100	[thread overview]
Message-ID: <k930p2$8br$1@ger.gmane.org> (raw)

Hello,

I'm just investigating why a user space program has a rather large 
VmSize, but small VmRSS size. Looking into /proc/$pid/smaps I notice 
several areas with an size of about 64MB, but otherwise that area is 
unused. So far I did not find a way how to reproduce that with malloc() 
calls.

7ffd34021000-7ffd38000000 ---p 00000000 00:00 0
Size:              65404 kB
Rss:                   0 kB
Pss:                   0 kB
Shared_Clean:          0 kB
Shared_Dirty:          0 kB
Private_Clean:         0 kB
Private_Dirty:         0 kB
Referenced:            0 kB
Anonymous:             0 kB
AnonHugePages:         0 kB
Swap:                  0 kB
KernelPageSize:        4 kB
MMUPageSize:           4 kB


Any idea how to do such an allocation from user space?


Thanks,
Bernd


             reply	other threads:[~2012-11-27 18:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27 18:28 Bernd Schubert [this message]
2012-11-27 22:00 ` memory allocation: smap large "Size", but unused David Rientjes

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='k930p2$8br$1@ger.gmane.org' \
    --to=bernd.schubert@itwm.fraunhofer.de \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.