home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / QFOS2.ZIP / QFRESH.DOC < prev    next >
Text File  |  1991-02-28  |  3KB  |  72 lines

  1. QFRESH.DOC
  2.  
  3. DRAM, the type of memory used in most PCs, must be refreshed 
  4. frequently to keep it from forgeting.  The PC is internally 
  5. programmed to do this every so often, and uses CPU time when 
  6. this is done.  The memory refresh rate is set during boot by a 
  7. BIOS routine, using a default value contained in the BIOS.  The 
  8. memory may need less refreshing than is called for by the BIOS 
  9. default value.  The IBM standard for PCs was overly conservative.  
  10. If the rate is changed to less often, which is what QFRESH does, 
  11. less time is wasted in refreshing memory.  This makes more time 
  12. available for processing.  However,if you make the refresh rate 
  13. too long, you might start to see memory problems.
  14.  
  15. The following results were obtained on a 386/25 clone with AMI BIOS, 
  16. 8M of memory, and OS/2 EE 1.3:
  17.  
  18. A program called CPULOAD constantly graphs the usage of the CPU.  
  19. It displays a value of 10% before QFRESH is run.  After 
  20. the OS/2 version of the program is run, the load value drops to 
  21. 7-8%.  If the DOS version is run instead, the load drops to 6-7%. 
  22. Both programs used a refresh rate value of "90".
  23.  
  24. The DOS version of the program is included if anyone wants to 
  25. experiment.  The rate value is hardcoded, but it can be changed by 
  26. disassembling the program.
  27.  
  28. Some brands may have decreased the refresh rate, which would explain 
  29. why QFRESH has no effect on some machines.
  30.  
  31. - Walt White and Don Palomaki
  32.  
  33. Walter White wanted QFRESH as an OS/2 program, and he posted the DOS
  34. machine code, so I "wrapped" it for OS/2, "bound" it so it would work
  35. under either OS/2 or DOS, and posted the result. 
  36.  
  37. It does seem to reprogram the memory refresh timing, and that's all I
  38. will say. If it's good for you, use it! The problem here is that I
  39. use the original Microsoft Bus Mouse, and playing around with this
  40. has some really noticable effects on my mouse tracking!? Also, if you
  41. get "TRAP 02" you have gone too far!
  42.  
  43. This is a port of QFRESH for OS/2. To use this program, edit your
  44. CONFIG.SYS file and put in a line that says:
  45.  
  46.     IOPL=QFRESH
  47.  
  48. or
  49.  
  50.     IOPL=YES
  51.  
  52. and reboot your machine.
  53.  
  54. To invoke QFRESH, use a line like
  55.  
  56.     [C:\]QFRESH 90
  57.  
  58. Play with the number until optimal performance is reached (based on
  59. your tolerance of crashing). When you find the right number, just put
  60. the QFRESH statement into your STARTUP.CMD script.
  61.  
  62. A note on rebuilding:
  63.  
  64. IOPL requiring apps cannot be bound with recent versions of API.LIB,
  65. that's why D_PORTAC.OBJ is included. If you try to bind with an older
  66. API.LIB, you may want to try NOT binding with D_PORTAC.OBJ. If this
  67. doesn't make any sense, ignore it.
  68.  
  69. Have fun,
  70. Fred Weigel.
  71.  
  72.