home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / advocacy / 11103 < prev    next >
Encoding:
Text File  |  1992-12-29  |  5.1 KB  |  100 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: <1992Dec29.215219.15979@grebyn.com>
  6. Organization: Grebyn Timesharing
  7. References: <1992Dec26.224701.5914@ais.com> <1992Dec27.172250.4801@grebyn.com> <1992Dec27.190644.5915@ais.com>
  8. Date: Tue, 29 Dec 1992 21:52:19 GMT
  9. Lines: 89
  10.  
  11. In article <1992Dec27.190644.5915@ais.com> bruce@ais.com (Bruce C. Wright) writes:
  12. >In article <1992Dec27.172250.4801@grebyn.com>, mfraioli@grebyn.com (Marc Fraioli) writes:
  13. >> In article <1992Dec26.224701.5914@ais.com> bruce@ais.com (Bruce C. Wright) writes:
  14. >>>In article <1992Dec27.011721.23160@unvax.union.edu>, pallantj@unvax.union.edu (Joseph C. Pallante) writes:
  15. >>>> I have a question....
  16. >>>> 
  17. >>>> All this debate is over:  Many, Many crashes because a PC has only
  18. >>>> 8 megs of RAM.
  19. >>>> 
  20. >>>> My question:  Why does NT crash (or OS/2 for that matter) because of lack
  21. >>>> of enough RAM?  I would expect it to be slow because the OS would have
  22. >>>> to manipulate the memory, do some swapping, etc...   But, if it follows
  23. >>>> all the rules it should, theoreticaly, it should not crash.  It should
  24. >>>> just take longer to do its job, due to the overhead of running on
  25. >>>> a machine with little memory.
  26. >>>
  27. >>>Even on a virtual memory system, the system still needs a certain amount
  28. >>>of real memory in order to run itself, map I/O buffers, and keep track of
  29. >>>virtual memory, etc.  If the system is sufficiently overcommited on memory,
  30. >>>it may not be able to do all these things with available memory and in
  31. >>>fact may encounter situations where every process within the system is
  32. >>>waiting for memory currently in use by another process to be freed.
  33. >>>
  34. >> I thought that for this reason, the kernel of the OS is not made to be
  35. >> swappable, and runs at the highest possible priority, a priority that no
  36. >> other process can have.  This way, the system should always be able to
  37. >> recover.
  38. >
  39. >I don't particularly like the term `swappable' when applied to an OS
  40. >kernel -- to me it implies that the entire kernel might be moved out
  41. >to disk, which makes no sense.  `Pageable' makes more sense, at least
  42. >when talking about some parts of the kernel.  (I've usually seen the
  43. >term `swap' to mean that the entire memory-resident portion of the
  44. >process or object gets written to page or swap files, and `page' to
  45. >mean that only certain sections [pages] get written to the pagefile).
  46. >
  47. Ok, I played it a little loose with my terminology.  If you look a
  48. little lower down you will see I later used the word "pageable" as well.
  49. Sorry, I'll try to be more careful in the future.
  50.  
  51. >Where I think there's a flaw in your reasoning is in assuming that
  52. >the `OS kernel' == `OS as a whole'.  Large operating systems are often
  53. >broken up internally into a number of pieces;  the file system code,
  54. >for example, really doesn't have to be permanently resident in its
  55. >entirety.  You just need enough of the device-level code to be resident
  56. >for the system to load the higher-level file system code.  GUIs are
  57. >also candidtates for being moved out to disk in low memory situations.
  58. >Even some portions of the kernel itself might be pageable -- it depends
  59. >on what contexts in which you could stand to incur a page fault and call
  60. >the disk driver, which is going to be dependent on the OS internal
  61. >architecture.
  62. >
  63. But if the 'critical' routines in the kernel, such as the pager, are not
  64. pre-emptable and non-pageable, shouldn't they always be present to
  65. resolve such conflicts (assuming of course that you have enough memory
  66. to load the critical portion of the kernel-- /vmunix on a VIC-20?  I
  67. didn't think so.  So what'd I buy that 16k RAM expansion cartridge for?)
  68.  
  69. >> I just remember IBM making a big deal out of the fact
  70. >> that it's AIX 3.1 (I think that's the right version #) kernel was
  71. >> actually pageable-- the implication being that most aren't.
  72. >
  73. >Probably many aren't, but it's not uncommon.  That sounds like it was
  74. >probably typical marketing hype.  Note that there has to be at least a
  75. >minimal part of the kernel that isn't pageable -- the part that handles
  76. >page faults (!) and that handles low-level reads and writes to the disk
  77. >(to be able to do something with the page faults when they occur).
  78. >
  79. Makes sense.
  80.  
  81. >Now I should say that I don't _know_ that this is what is happening
  82. >to those people who have reported system lockups/crashes under low
  83. >memory conditions -- it's also possible that there's a bug somewhere.
  84. >But I think that as far as it goes it's an accurate description of
  85. >what _can_ happen in such systems.  One thing you have to keep in mind
  86. >is that when a large system like that `runs in 4MB', it doesn't mean
  87. >that there are 4MB of virtual memory used by the OS and its system-
  88. >level processes, but that there are 4MB of real memory required to
  89. >properly deal with the much larger virtual address space in use by
  90. >the OS in all its pieces.  Running it in a lot less can cause all
  91. >sorts of strange behavior, depending on what runs out first.
  92. >
  93. I myself still favor the bug theory, but it's an interesting debate.
  94.  
  95. >Bruce C. Wright
  96.  
  97. -- 
  98. Marc Fraioli
  99. mfraioli@grebyn.com                (So I'm a minimalist...)
  100.