home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / advocacy / 10984 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  4.4 KB

  1. Path: sparky!uunet!gatech!concert!ais.com!bruce
  2. From: bruce@ais.com (Bruce C. Wright)
  3. Newsgroups: comp.os.os2.advocacy
  4. Subject: Re: OS/2 bigot meets NT....
  5. Message-ID: <1992Dec27.190644.5915@ais.com>
  6. Date: 27 Dec 92 19:06:44 GMT
  7. References: <1992Dec25.232450.19632@actrix.gen.nz> <1992Dec27.011721.23160@unvax.union.edu> <1992Dec26.224701.5914@ais.com> <1992Dec27.172250.4801@grebyn.com>
  8. Organization: Applied Information Systems, Chapel Hill, NC
  9. Lines: 72
  10.  
  11. In article <1992Dec27.172250.4801@grebyn.com>, mfraioli@grebyn.com (Marc Fraioli) writes:
  12. > In article <1992Dec26.224701.5914@ais.com> bruce@ais.com (Bruce C. Wright) writes:
  13. >>In article <1992Dec27.011721.23160@unvax.union.edu>, pallantj@unvax.union.edu (Joseph C. Pallante) writes:
  14. >>> I have a question....
  15. >>> 
  16. >>> All this debate is over:  Many, Many crashes because a PC has only
  17. >>> 8 megs of RAM.
  18. >>> 
  19. >>> My question:  Why does NT crash (or OS/2 for that matter) because of lack
  20. >>> of enough RAM?  I would expect it to be slow because the OS would have
  21. >>> to manipulate the memory, do some swapping, etc...   But, if it follows
  22. >>> all the rules it should, theoreticaly, it should not crash.  It should
  23. >>> just take longer to do its job, due to the overhead of running on
  24. >>> a machine with little memory.
  25. >>
  26. >>Even on a virtual memory system, the system still needs a certain amount
  27. >>of real memory in order to run itself, map I/O buffers, and keep track of
  28. >>virtual memory, etc.  If the system is sufficiently overcommited on memory,
  29. >>it may not be able to do all these things with available memory and in
  30. >>fact may encounter situations where every process within the system is
  31. >>waiting for memory currently in use by another process to be freed.
  32. >>
  33. > I thought that for this reason, the kernel of the OS is not made to be
  34. > swappable, and runs at the highest possible priority, a priority that no
  35. > other process can have.  This way, the system should always be able to
  36. > recover.
  37.  
  38. I don't particularly like the term `swappable' when applied to an OS
  39. kernel -- to me it implies that the entire kernel might be moved out
  40. to disk, which makes no sense.  `Pageable' makes more sense, at least
  41. when talking about some parts of the kernel.  (I've usually seen the
  42. term `swap' to mean that the entire memory-resident portion of the
  43. process or object gets written to page or swap files, and `page' to
  44. mean that only certain sections [pages] get written to the pagefile).
  45.  
  46. But this is something of a nit.
  47.  
  48. Where I think there's a flaw in your reasoning is in assuming that
  49. the `OS kernel' == `OS as a whole'.  Large operating systems are often
  50. broken up internally into a number of pieces;  the file system code,
  51. for example, really doesn't have to be permanently resident in its
  52. entirety.  You just need enough of the device-level code to be resident
  53. for the system to load the higher-level file system code.  GUIs are
  54. also candidtates for being moved out to disk in low memory situations.
  55. Even some portions of the kernel itself might be pageable -- it depends
  56. on what contexts in which you could stand to incur a page fault and call
  57. the disk driver, which is going to be dependent on the OS internal
  58. architecture.
  59.  
  60. > I just remember IBM making a big deal out of the fact
  61. > that it's AIX 3.1 (I think that's the right version #) kernel was
  62. > actually pageable-- the implication being that most aren't.
  63.  
  64. Probably many aren't, but it's not uncommon.  That sounds like it was
  65. probably typical marketing hype.  Note that there has to be at least a
  66. minimal part of the kernel that isn't pageable -- the part that handles
  67. page faults (!) and that handles low-level reads and writes to the disk
  68. (to be able to do something with the page faults when they occur).
  69.  
  70. Now I should say that I don't _know_ that this is what is happening
  71. to those people who have reported system lockups/crashes under low
  72. memory conditions -- it's also possible that there's a bug somewhere.
  73. But I think that as far as it goes it's an accurate description of
  74. what _can_ happen in such systems.  One thing you have to keep in mind
  75. is that when a large system like that `runs in 4MB', it doesn't mean
  76. that there are 4MB of virtual memory used by the OS and its system-
  77. level processes, but that there are 4MB of real memory required to
  78. properly deal with the much larger virtual address space in use by
  79. the OS in all its pieces.  Running it in a lot less can cause all
  80. sorts of strange behavior, depending on what runs out first.
  81.  
  82. Bruce C. Wright
  83.