On Monday 28 November 2005 02:07, Rob Landley wrote:
> On Sunday 27 November 2005 12:31, Nix wrote:

> Did you catch Linus's long rant about how MAP_PRIVATE is deeply stupid and
> that Linux will never really implement it?

What's that?

> And you can fsync and do stuff like journaling within a file.  (Except with
> mmap it's msync.)

> No, just use the madvise(NO_SYNC).

Which doesn't exist.

> Then tmpfs becomes completely 
> irrelevant because any arbitrary file backed mapping can be treated as
> memory.  (Not pinned, but still treated as shared memory.)

> I vaguely remember some discussion about this on linux-kernel, some time
> ago. I wonder how it came out?  (2.6.15-rc2 mman.h doesn't show
> anything...)

What I remember is MADV_TRUNCATE / MADV_FREE / and so on by Badary Pulavarty - 
the equivalent of MADV_DONTNEED with additional truncation of the tmpfs pages 
you have mmaped.

Which is used for UML memory hotunplug patch from Jeff's. IIRC it's in -mm, 
but won't be in 2.6.15 at this point.

> > (security holes? but other users can't *see* that /tmp, which is why it's
> > mode 640, just like their $HOME...)

> Or you could just add the madvise() like I mentioned and forget about tmpfs
> completely.

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to