home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / advocacy / 10972 < prev    next >
Encoding:
Text File  |  1992-12-27  |  3.4 KB  |  68 lines

  1. Newsgroups: comp.os.os2.advocacy
  2. Path: sparky!uunet!grebyn!daily!mfraioli
  3. From: mfraioli@grebyn.com (Marc Fraioli)
  4. Subject: Re: OS/2 bigot meets NT....
  5. Message-ID: <1992Dec27.172250.4801@grebyn.com>
  6. Organization: Grebyn Timesharing
  7. References: <1992Dec25.232450.19632@actrix.gen.nz> <1992Dec27.011721.23160@unvax.union.edu> <1992Dec26.224701.5914@ais.com>
  8. Date: Sun, 27 Dec 1992 17:22:50 GMT
  9. Lines: 57
  10.  
  11. In article <1992Dec26.224701.5914@ais.com> bruce@ais.com (Bruce C. Wright) writes:
  12. >In article <1992Dec27.011721.23160@unvax.union.edu>, pallantj@unvax.union.edu (Joseph C. Pallante) writes:
  13. >> I have a question....
  14. >> 
  15. >> All this debate is over:  Many, Many crashes because a PC has only
  16. >> 8 megs of RAM.
  17. >> 
  18. >> My question:  Why does NT crash (or OS/2 for that matter) because of lack
  19. >> of enough RAM?  I would expect it to be slow because the OS would have
  20. >> to manipulate the memory, do some swapping, etc...   But, if it follows
  21. >> all the rules it should, theoreticaly, it should not crash.  It should
  22. >> just take longer to do its job, due to the overhead of running on
  23. >> a machine with little memory.
  24. >
  25. >Not true.
  26. >
  27. >You are correct that the OS should not have a `hard' crash (as in a
  28. >memory protect violation or the like) in a low-memory situation, and
  29. >that if it does it indicates a bug in the OS.
  30. >
  31. >But a `soft' crash, where the system just seems to `go away' indefinitely,
  32. >is still possible.  The problem is that in situations where one or another
  33. >resource is overcommitted, you can often reach situations where in order
  34. >for the OS to proceed, _every_ _process_ on the OS requires something that
  35. >is already owned by another process.  This is known as a deadlock or a
  36. >deadly embrace.  In general, the only ways to avoid this in all cases
  37. >either require that there be a large excess of resources (and that the
  38. >system enforce that a program can't use more of its quota of resources
  39. >and that the sum of all the quotas isn't more than the total on the
  40. >system), or to greatly increase the complexity (and CPU requirements) of
  41. >using the API.  These are usually not considered practical solutions
  42. >because they greatly increase the amount of resources required on the
  43. >system to avoid a problem that's pretty rare anyway except in very
  44. >overcommitted situations;  the problem rarely happens in `slightly'
  45. >overcommitted systems.
  46. >
  47. >Even on a virtual memory system, the system still needs a certain amount
  48. >of real memory in order to run itself, map I/O buffers, and keep track of
  49. >virtual memory, etc.  If the system is sufficiently overcommited on memory,
  50. >it may not be able to do all these things with available memory and in
  51. >fact may encounter situations where every process within the system is
  52. >waiting for memory currently in use by another process to be freed.
  53. >
  54. I thought that for this reason, the kernel of the OS is not made to be
  55. swappable, and runs at the highest possible priority, a priority that no
  56. other process can have.  This way, the system should always be able to
  57. recover.  So if your system requires 4,000k on a 4MB system, you
  58. wouldn't be able to run many programs, but the OS itself should stay up.
  59. This doesn't really require increasing the complexity of the API-- it is
  60. in fact transparent to the programmer.  I just remember IBM making a big
  61. deal out of the fact that it's AIX 3.1 (I think that's the right version
  62. #) kernel was actually pageable-- the implication being that most
  63. aren't.
  64.  
  65. -- 
  66. Marc Fraioli
  67. mfraioli@grebyn.com                (So I'm a minimalist...)
  68.