linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: [uml-user] /dev/anon available
Date: Sun, 18 Jan 2004 18:53:31 -0500	[thread overview]
Message-ID: <20040118235331.GB21046@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200401181637.35418.blaisorblade_spam@yahoo.it>

On Sun, Jan 18, 2004 at 05:13:38PM +0100, BlaisorBlade wrote:
> Yes, that's obvious with MAP_PRIVATE (and using MAP_SHARED would be 
> meaningless, if at all worked). But I wasn't aware you needed to map the same
> region twice; I guess this is done for pages shared (even with copy on write)
> between different processes inside UML, right? 

Pages are shared all over the place.  Pages are mapped into
	the UML physical memory region (the entire file as one chunk)
	the UML virtual memory region (in response to vmalloc)
	UML processes

They can be shared between processes
	between a fork and exec
	as shared memory
	as shared readonly data (i.e. program text)

> Also, since with skas the 
> mm_struct's of the virtual processes have nothing in common, they cannot

What do you mean by this?

> However, have you asked to Linus if he likes /dev/anon? Maybe he'll suggest 
> another interface for the same need (like when you two discussed skas4).

No, I haven't.  I did get a reaction from the tmpfs author.  He wasn't too
fond of the interface, but didn't immediately have any better suggestions.

I'm not too fond of it either, but it's the best I could think of off the
top of my head.

				Jeff



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-01-18 23:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200401130510.i0D5AlS4026784@ccure.user-mode-linux.org>
2004-01-17 19:48 ` [uml-devel] Re: [uml-user] /dev/anon available BlaisorBlade
2004-01-18  4:54   ` Jeff Dike
2004-01-18 16:13     ` BlaisorBlade
2004-01-18 23:53       ` Jeff Dike [this message]
2004-01-20 19:32         ` BlaisorBlade

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=20040118235331.GB21046@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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