linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Linux MM mailing list <linux-mm@kvack.org>, torvalds@transmeta.com
Subject: Under what conditions are VMAs merged?
Date: Wed, 17 Oct 2001 17:22:55 -0700	[thread overview]
Message-ID: <3BCE20DF.6090103@zytor.com> (raw)

Okay, as part of doing this persistent memory system, I apparently need to
know better when and if VMAs are merged.  The persistent memory obviously
does lots of mprotect() to what is otherwise a large private mapping of a
file (not anonymous.)

In the checkpoint routine I thought doing an mprotect(PROT_READ) on the
entire region as a single system call would coalesce the VMAs, but
apparently that is not the case; after running my standard stress-test
application, /proc/pid/maps show 51635 mappings, most of them contiguous
and otherwise matching the surrounding mappings in every way; a dump of
/proc/pid/maps is at ftp://terminus.zytor.com/pub/hpa/map.gz for the
morbidly curious.

This system is running a stock 2.4.12-ac1; the database file is 1
GB+overhead in size (1,074,008,064 bytes to be exact), it is mapped at
0x5f000000.

Appreciative for any suggestions.

	-hpa

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

             reply	other threads:[~2001-10-18  0:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-18  0:22 H. Peter Anvin [this message]
2001-10-18  1:58 ` Benjamin LaHaise

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=3BCE20DF.6090103@zytor.com \
    --to=hpa@zytor.com \
    --cc=linux-mm@kvack.org \
    --cc=torvalds@transmeta.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