lkml.org 
[lkml]   [1999]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: (XFree86) mmap of /proc/XXX/mem


On Thu, 2 Dec 1999, Egbert Eich wrote:

> Yes, but how? We need a solution otherwise we won't be able to
> use the vm86 mode even on Intel. The emulator makes everything
> even slower.

Check dosemu. The _real_ problem with /proc/<pid>/mem is that it needs
very different behaviour in different parts of process address space. Just
aliasing every page and hoping that extra reference will save your day is
_very_ bad idea - behaviour of pages on swapout, etc. is determined by
vma, not by reference in page table. We _might_ go for /proc/<pid>/object/
a-la Slowlaris, and that might be made mmap'able, but that's a separate
story. And IMO an overkill.

Dosemu does aliasing in very similar situation. Check how it's done.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.077 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site