home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9363 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.8 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!news
  2. From: wilson@cs.utexas.edu (Paul Wilson)
  3. Newsgroups: comp.unix.questions
  4. Subject: memory aliasing---multiple mmap or shared segments?
  5. Date: 23 Jul 1992 18:56:19 -0500
  6. Organization: CS Dept, University of Texas at Austin
  7. Lines: 37
  8. Message-ID: <l6uhp3INN65d@boogie.cs.utexas.edu>
  9. NNTP-Posting-Host: boogie.cs.utexas.edu
  10.  
  11. I need a way of aliasing a particular hunk of storage as four different
  12. segments of virtual memory.  That is, I want to have several ranges
  13. of virtual addresses, each of which is an alias for the same storage.
  14.  
  15. Ideally, I'd like this to be a coherently cached piece of virtual
  16. memory, and I'd like it to be portable across major modern dialects of
  17. UNIX, especially SVR4.
  18.  
  19. Does mmap give me the semantics I want?  Can I map several ranges
  20. of addresses (in one address space) to the same file, and have it
  21. work out right?
  22.  
  23. Do I need shared segments?  (I only need aliasing within one process'
  24. virtual address space, not sharing between address spaces.)
  25.  
  26. Is SVR4 sophisticated enough to get this right?
  27.  
  28. By the way, I actually don't mind if I don't get cache coherency,
  29. because I won't actually be accessing any particular hunk of memory
  30. by more than one alias.  I'll only be using a quarter of each
  31. virtual memory page, in a way that it maps to an otherwise unused
  32. part of an actual page.   So while I want the pages aliased, I
  33. will not actually be referring to data objects by more than
  34. one alias.
  35.  
  36. Thanks in advance for any advice,
  37.  
  38.    Paul
  39.  
  40.  
  41.  
  42.  
  43. -- 
  44. | Paul R. Wilson                                    wilson@cs.utexas.edu      |
  45. | U. of Texas Computer Sciences Dept.               voice: (512) 471-9555     |
  46. | Taylor Hall 2.124, Austin, TX 78712-1188          fax:   (512) 471-8885     |
  47. | "Inertia makes the world go 'round."                                        |
  48.