home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / pcboard / 150_tips.zip / MSGS.ZIP / OVERLAY.MSG < prev    next >
Text File  |  1993-05-12  |  2KB  |  43 lines

  1. Date: 05-08-93 (09:15)              Number: 62411 of 63372 (Refer# 62379)
  2.   To: JOE SIEGLER
  3. From: DAVID TERRY
  4. Subj: Overlay Size
  5. Read: 05-10-93 (05:04)              Status: PUBLIC MESSAGE
  6. Conf: BETA (6)                   Read Type: MAIL FROM YOU (R/O) (+)
  7.  
  8. -> I already tried 16.   Seems to speed it up a little bit.   However, my
  9. -> original question still stands.  Can you tell me what this overlay number
  10. -> thing DOES?   I'm a bit unfamiliar with what overlays do, and even more so
  11. -> what this number thing is.
  12.  
  13. You'll notice that PCBoard's executable is now over 400K in size.
  14.  
  15. Rather than holding this entire 400K .EXE file in memory, and using up 400K
  16. *just* for the CODE portion (not even counting the DATA requirements of the
  17. program) it is instead using overlays.
  18.  
  19. This means that only a portion of the 400K .EXE file is in memory at any given
  20. time.  How MUCH of the executable can be held in memory depends on two factors:
  21. 1) How much of it is "resident" (not in the overlay) and 2) How big the overlay
  22. bufffer is.
  23.  
  24. A setting of 16 sets up a 64K overlay buffer.  That means that PCBoard can swap
  25. pieces of the .EXE file in and out of memory keeping up to 64K of it in the
  26. overlay buffer.
  27.  
  28. A higher value allows more of the .EXE file to be held in memory.  The highest
  29. possible value, of course, would simply load the ENTIRE .EXE file into memory
  30. at "load time" and would never again access the hard disk.
  31.  
  32. But that would be wasteful of memory.  So a smaller value, such as 16, is used.
  33. This lets PCBoard pull in the code that is running, when it is needed, and
  34. leave the rest of the code on disk until it is needed.
  35.  
  36. Lower values may hurt performance by causing PCBoard to continually swap code
  37. in from disk - creating more disk activity than would otherwise be necessary.
  38.  
  39. So allowing you to pick the buffer size allows you to "tune" your system to
  40. meet your memory AND performance needs.  If you need more memory, go for a
  41. lower overlay buffer size.  If you need more performance, go for a higher
  42. buffer size.
  43.