home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / arch / 12017 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.4 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!lindsay
  2. From: lindsay+@cs.cmu.edu (Donald Lindsay)
  3. Newsgroups: comp.arch
  4. Subject: Re: IBM AS/400 is the world's slowest computer
  5. Message-ID: <C053yy.FFw.2@cs.cmu.edu>
  6. Date: 31 Dec 92 20:08:58 GMT
  7. References: <BzsIFK.EMF.2@cs.cmu.edu> <1992Dec25.033918.3246@beaver.cs.washington.edu> <1992Dec28.040535.8064@ksmith.uucp>
  8. Sender: news@cs.cmu.edu (Usenet News System)
  9. Organization: School of Computer Science, Carnegie Mellon
  10. Lines: 39
  11. Nntp-Posting-Host: gandalf.cs.cmu.edu
  12.  
  13.  
  14. keith@ksmith.uucp (Keith Smith) writes:
  15. >I was under the assumption that the machine model
  16. >of the AS/400 is that everything you scribble on or read from lies
  17. >somewhere on the terabyte or so of address space in the machine.  This
  18. >seems really stupid to me.  Basically then by hiding the hardware in an
  19. >address you would *HAVE* to check the memory references for capability,
  20. >where if you just treated devices differently from the start you can
  21. >avoid this.  
  22.  
  23. Mapping a file into memory is (to the programmer) like having the
  24. "open" read the entire file into memory. [Modulo issues such as
  25. multiple users opening the file.] This allows a different style of
  26. programming - and  sometimes the style is a better one. That's the
  27. user-level win.
  28.  
  29. >In fact you avoid 2 layers, the one at the OS level where
  30. >you translate the Device work into a memory reference, and then at the
  31. >microcode level where it gets translated *BACK* to some device
  32. >operation.
  33.  
  34. Layering can be even worse that that. The file system may use trees
  35. [more generally, "access structures"] to find the pieces of the file
  36. on disk. The virtual memory support uses access structures to map
  37. between file-system-relative locations and addresses. And, a data
  38. base manager or transaction manager does bookkeeping concerning its
  39. pattern of file-relative reads and writes. If these layers ignore
  40. each other, it's possible to get some considerable overheads,
  41. relative to a more integrated product.
  42.  
  43. [A data base designer tells the story of a user who tried to build a
  44. 200 MB data base, and asked why he needed 400 MB free to make it
  45. work.  It turned out that the initialization wasn't special cased,
  46. and was writing all those "new" zeroes into shadow pages, which were
  47. later "committed". The point being that actual usages don't always
  48. match the model the designers worked to.]
  49.  
  50. -- 
  51. Don        D.C.Lindsay    Carnegie Mellon Computer Science
  52.