linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-mm@kvack.org
Subject: Re: Discardable mappings?
Date: Tue, 16 Oct 2001 15:02:35 -0200 (BRST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0110161500340.10214-100000@freak.distro.conectiva> (raw)
In-Reply-To: <3BCB55DD.60607@zytor.com>


On Mon, 15 Oct 2001, H. Peter Anvin wrote:

> I have been working on a user-space persistent memory system, and would
> like to bring up (again?) the possibility of a "discardable" class of
> mappings.  "Discardable" means that the system is free to throw away a
> page without storing it to swap, and return SIGSEGV on access, since the
> application can regenerate the data on that page if needed.
> 
> My personal preference would be if this was a PROT_* flag that could be
> used with mprotect(), since my system, and probably most other systems
> which need this kind of functionality, use mprotect() on these pages
> already, and it'd be nice to avoid Yet Another System Call[TM] in a very
> performance-critical part of the system; furthermore, I tend to think of
> mprotect() as controlling when to raise SIGSEGV, so it's not *completely*
> out of place there...

I don't see any problem with doing that. 

Just Write The Code. :) 

--
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-16 17:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-15 21:32 H. Peter Anvin
2001-10-16 17:02 ` Marcelo Tosatti [this message]

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=Pine.LNX.4.21.0110161500340.10214-100000@freak.distro.conectiva \
    --to=marcelo@conectiva.com.br \
    --cc=hpa@zytor.com \
    --cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox