home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / misc / 895 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.1 KB  |  49 lines

  1. Newsgroups: comp.os.misc
  2. Path: sparky!uunet!stanford.edu!ames!think.com!paperboy.osf.org!bruel
  3. From: bruel@postman.gr.osf.org (Christian Bruel)
  4. Subject: Re: Processes and Translation Look-Aside Buffers
  5. Message-ID: <1992Nov9.134748.21528@osf.org>
  6. Sender: news@osf.org (USENET News System)
  7. Organization: OSF RI Grenoble
  8. References: <Bx7oDL.507@beach.csulb.edu> <Bx99Eq.Cpp@pix.com>
  9. Date: Mon, 9 Nov 1992 13:47:48 GMT
  10. Lines: 37
  11.  
  12.  
  13. In article <Bx99Eq.Cpp@pix.com>, stripes@pix.com (Josh Osborne) writes:
  14. |> In article <Bx7oDL.507@beach.csulb.edu> werts@thrush.acs.csulb.edu (Michael Werts) writes:
  15. |> >Can anyone give me an idea of what is done with
  16. |> >the contents of a translation look-aside buffer
  17. |> >at task switch time in an operating system like
  18. |> >Unix with per process address spaces?
  19. |> >
  20. |> >Is the TLB reloaded? Or is it shared in someway
  21. |> >between processes?
  22. |> 
  23. |> Most CPU/MMUs I have seen invalidate it.  The AMD29k has a 16bit (it may
  24. |> be 8, but I think 16) task-id it uses during the look-up, so it can let
  25. |> TLBs live.  I havn't seen any study showing when AMD's TLBs live long enough
  26. |> to make a diffrence, let alone a study showing the more genneral case (i.e.
  27. |> with a load of X and a task-id Y bits wide Z TLBs will live through enough
  28. |> context switchs to be re-used...).
  29. |> 
  30. |> For cache there is a 3rd choice, you can use phyical addresses rather then
  31. |> vert. ones (at the cost of not being able to overlap cache look-up and
  32. |> VM maping), Intel does this with the 386 and 486.  I don't know anyone
  33. |> else who does.
  34. |> -- 
  35. |>            stripes@pix.com              "Security for Unix is like
  36. |>       Josh_Osborne@Real_World,The          Multitasking for MS-DOS"
  37. |>       "The dyslexic porgramer"                  - Kevin Lockwood
  38. |> We all agree on the necessity of compromise.  We just can't agree on
  39. |> when it's necessary to compromise.       - Larry Wall
  40.  
  41. you might also want to have a look in the mips architecture on which the TLB entries have a pid field so there is no need to invalidate the pages 
  42. or to flush the TLB (unless you have more than 64 processes, the pid field 
  43. has 6 bits). 
  44.  
  45.  
  46. -- 
  47.  
  48.                             [ chris ]
  49.