home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / coherent / 3374 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  3.8 KB

  1. Xref: sparky comp.os.coherent:3374 comp.os.minix:4088
  2. Newsgroups: comp.os.coherent,comp.os.minix
  3. Subject: Re: OS compare (Unix/clone)
  4. Path: sparky!uunet!think.com!unixland!rmkhome!rmk
  5. From: rmk@rmkhome.UUCP (Rick Kelly)
  6. Organization: The Man With Ten Cats
  7. Date: Fri, 31 Jul 1992 12:39:47 GMT
  8. Reply-To: rmk@rmkhome.UUCP (Rick Kelly)
  9. Message-ID: <9207310739.47@rmkhome.UUCP>
  10. References: <PETRI.VIRKKULA.92Jul27231025@vipunen.hut.fi> <1992Jul28.154817.5839@mtu.edu> <PETRI.VIRKKULA.92Jul29191611@vipunen.hut.fi> <1992Jul29.172406.29587@klaava.Helsinki.FI>
  11. Lines: 69
  12.  
  13. In article <1992Jul29.172406.29587@klaava.Helsinki.FI> torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) writes:
  14. >In article <PETRI.VIRKKULA.92Jul29191611@vipunen.hut.fi> Petri.Virkkula@hut.fi (Petri Virkkula) writes:
  15. >>
  16. >>    Haven't I understood something correctly? Isn't it possible to
  17. >>    swap segments to disk using Valid and Accessed flags in
  18. >>    segment descriptors?
  19. >
  20. >Yes, it's certainly possible, but it's also almost never worth the
  21. >bother: it's slow, hard to program, and writing a C-compiler (and
  22. >probably any other language) to understand several segments while still
  23. >being efficient is pretty hard.  And having just one code-segment and
  24. >one data (and stack) segment is simply not enough for a lot of
  25. >interesting applications.
  26.  
  27. Didn't XENIX for the 286 use large model code?  It seems to me that
  28. they implemented demand paging, but they may have stuck to process
  29. swapping.  It's been years since I used it.
  30.  
  31. >Having several different code/date-segments doesn't lend itself very
  32. >well to high-level languages (it doesn't even work too well in assembly,
  33. >but there the programmer often knows what he/she is doing).  Thus
  34. >coherent 3.2 and minix don't even try: they keep to one segment, and
  35. >limit all data to 64kB.  You can do a lot in 64kB, but I'd rather miss
  36. >the experience. 
  37.  
  38. Of course, Coherent 3.x only had this limit on Intel processors.  Previous
  39. versions of Coherent ran on 68xxx and Z8000 processors.
  40.  
  41. One thing that made V7 UNIX successful on the PDP-11 was overlays.  The
  42. original UNIX version of EMACS was 300k, but used in-memory overlays to
  43. swap parts of the program in and out.
  44.  
  45. Coherent 3.x came with a series of routines to allow a program to set
  46. up virtual devices for large amounts of data.
  47.  
  48. >OS/2 1.x tried to implement a "real" system on a 286, and while some
  49. >people think it worked well, most people (including the OS/2 2.0
  50. >designers) seem to agree that the 286 protected mode memory management
  51. >is simply not enough for any good real system.  Of course, you can still
  52. >use them for DOS or some other embedded system (a toaster, washing
  53. >machine etc). 
  54.  
  55. It's easy to be condescending towards the 286, but that is where UNIX
  56. on Intel boxes started.  Try Xenix and Venix as just two examples of
  57. AT&T UNIX source code running on the 286.  Without the 286 ports to
  58. prove the viability and popularity of UNIX on AT boxes, they may have
  59. never ported UNIX to the 386.  
  60.  
  61. >That doesn't mean the 386 is perfect: it has got it's own number of
  62. >idiocyncracies (especially when used in AT hardware).  But at least you
  63. >don't have to fight the hardware all the way if you want to do something
  64. >bigger on a 386.
  65.  
  66. Judging by what Intel has done with the 386 and 486 in parallel computers,
  67. they seem to be excellent processors that have been unfortunately hampered
  68. by an aging hardware design ( the AT ).
  69.  
  70. >PS.  "Being able to" and "suitable for" are totally different things:
  71. >you can write a fully multitasking VM system with 32-bit pointers on a
  72. >Z80 (for example by writing a 386 (or why not a cray-XMP?) emulator on
  73. >it), and all general-purpose processors are theoretically able to solve
  74. >the same set of problems.  Thus even a lowly 286 can provably do the
  75. >same things a 386 does.  It's just not worth it in most cases. 
  76.  
  77. The Cray XMP does not do demand paging.
  78.  
  79. -- 
  80.  
  81. Rick Kelly    rmk@rmkhome.UUCP    unixland!rmkhome!rmk    rmk@frog.UUCP
  82.