home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!news
- From: wilson@cs.utexas.edu (Paul Wilson)
- Newsgroups: comp.unix.questions
- Subject: memory aliasing---multiple mmap or shared segments?
- Date: 23 Jul 1992 18:56:19 -0500
- Organization: CS Dept, University of Texas at Austin
- Lines: 37
- Message-ID: <l6uhp3INN65d@boogie.cs.utexas.edu>
- NNTP-Posting-Host: boogie.cs.utexas.edu
-
- I need a way of aliasing a particular hunk of storage as four different
- segments of virtual memory. That is, I want to have several ranges
- of virtual addresses, each of which is an alias for the same storage.
-
- Ideally, I'd like this to be a coherently cached piece of virtual
- memory, and I'd like it to be portable across major modern dialects of
- UNIX, especially SVR4.
-
- Does mmap give me the semantics I want? Can I map several ranges
- of addresses (in one address space) to the same file, and have it
- work out right?
-
- Do I need shared segments? (I only need aliasing within one process'
- virtual address space, not sharing between address spaces.)
-
- Is SVR4 sophisticated enough to get this right?
-
- By the way, I actually don't mind if I don't get cache coherency,
- because I won't actually be accessing any particular hunk of memory
- by more than one alias. I'll only be using a quarter of each
- virtual memory page, in a way that it maps to an otherwise unused
- part of an actual page. So while I want the pages aliased, I
- will not actually be referring to data objects by more than
- one alias.
-
- Thanks in advance for any advice,
-
- Paul
-
-
-
-
- --
- | Paul R. Wilson wilson@cs.utexas.edu |
- | U. of Texas Computer Sciences Dept. voice: (512) 471-9555 |
- | Taylor Hall 2.124, Austin, TX 78712-1188 fax: (512) 471-8885 |
- | "Inertia makes the world go 'round." |
-