home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / system / 11801 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  3.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!mumbo.apple.com!gallant.apple.com!kip2-27.apple.com!user
  2. From: boyd@apple.com (Scott Boyd)
  3. Newsgroups: comp.sys.mac.system
  4. Subject: Re: 7.x.x Finder Heap Allocation ?
  5. Message-ID: <boyd-110992011353@kip2-27.apple.com>
  6. Date: 11 Sep 92 08:26:21 GMT
  7. References: <1992Sep1.164852.29038@elroy.jpl.nasa.gov> <1992Sep2.191821.22486@newsgate.sps.mot.com> <boyd-080992001653@kip2-50.apple.com> <1992Sep8.175035.18030@elroy.jpl.nasa.gov>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.system
  10. Organization: Apple Computer Inc.
  11. Lines: 72
  12.  
  13. In article <1992Sep8.175035.18030@elroy.jpl.nasa.gov>,
  14. sgrenander@NASAMAIL.JPL.NASA.GOV (Sven Grenander) wrote:
  15. > In article <boyd-080992001653@kip2-50.apple.com>, boyd@apple.com (Scott Boyd) writes:
  16. > > 
  17. > > In article <1992Sep2.191821.22486@newsgate.sps.mot.com>, 
  18. > > gpb@gpb-mac. (greg berryman ) wrote, suggesting that you alter the Finder
  19. > > to give it a larger heap.
  20. > > 
  21. > > Don't do this.  It won't get you what you want.  Finder has two sub-heaps,
  22. > > and their sizes are fixed.  You won't be altering their sizes when you
  23. > > adjust
  24. > > the Finder's heap size.
  25. > > 
  26. > > It is far more likely that you are running out of Finder heap because some
  27. > > poorly-written software is allocating memory in other people's heaps,
  28. > > including Finder's.  You might try looking through your extensions to
  29. > > see if you can spot the offender.
  30. > > 
  31. > > scott
  32. > > boyd@apple.com
  33. > > 
  34. > > 
  35. > Scott,
  36. > Given your address I would assume that you know what you are talking about,
  37. > but empirical evidence overwhelmingly shows that increasing the Finder
  38. > heap size reduces the problems that I (and at least a few others) have had.
  39. > If you are correct, then the empirical evidence seems to imply that the 
  40. > increased Finder heap allocation cures the symptom (OOM warnings and random 
  41. > crashes) but not the underlying problem (misbehaving extensions was your 
  42. > suggestion).
  43.  
  44. Increasing the heap size masks the problem, but does not FIX the problem.
  45.  
  46.  
  47. > Do you have any suggestions for how one would go about tracking down these
  48. > underlying problems ? Is there for example any system 7 MemWatcher utility
  49. > which could help trap offending apps or extensions ?
  50.  
  51. The simplest technique is to remove all of your extensions, and add them
  52. back, one at a time, and try to reproduce the problem.  This can be
  53. tedious,
  54. but can also be fairly reliable.
  55.  
  56. More advanced techniques are available to those with the skills.  While it
  57. might be fun (for some people) to learn those skills, I'm not up to trying
  58. to teach these things via e-mail.
  59.  
  60. > A review of IM VI is no doubt in order if one is to understand the two sub-
  61. > heaps that you mention, is there some other information source that you can 
  62. > recomend, such as a TN or something similar which addresses this specific
  63. > issue ? In particular, is there any reference which describes how a fixed heap
  64. > can satisfy the requirements from the lowest Mac to one at the high end with
  65. > dozens of simultaneously running apps, tens of disk partitions, zillions of
  66. > open windows over half a dozen monitors, gobs of open files and
  67. > who-knows-how-many extensions ?
  68.  
  69. How can you write an app so its heap is small, yet still satisfactory for
  70. a wide range of memory-consuming activities?
  71.  
  72. The technique is one anyone can use, and involves using temporary memory.
  73. Inside Macintosh Volume 6 details the use of Process Manager temporary
  74. memory.  The concept is simple Q put only what you have to in your own
  75. heap, and do everything else with temporary memory.  Not all applications
  76. are really suited for this approach, but many are.
  77.  
  78. Scott Knaster's books also are rich with tips and techniques for wise
  79. use of limited memory resources.
  80.  
  81. scott
  82. boyd@apple.com
  83.