Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.9 KiB

  1. ;
  2. ; General memory management configuration parameters.
  3. ;
  4. [Memory Management]
  5. ;
  6. ; Virtual Memory
  7. ;
  8. ; Turning on Virtual Memory forces all blocks to be aligned at the end of physical pages.
  9. ; This will cause GP faults if the memory is accessed beyond it's allocation limit.
  10. ;
  11. ; If Virtual Memory is enabled, then Virtual Align specifies the alignment of the block. This MUST
  12. ; be 4 for non x86 machines (this is enforced internally by EXCHMEM.
  13. ;
  14. VirtualMemory=0
  15. VirtualAlign=0
  16. ;
  17. ; Leak Detection
  18. ;
  19. ; If AssertLeaks is non 0, EXCHMEM will assert when a leak has been detected.
  20. ; If DumpLeaks is non 0, EXCHMEM will dump information about the leak to the <program>.MEM file located in the
  21. ; log path directory.
  22. ; If DumpLeaksToDebugger is non 0, EXCHMEM will dump information about the leak to the debugger using OutputDebugString.
  23. ;
  24. ;
  25. AssertLeaks=0
  26. DumpLeaks=0
  27. DumpLeaksToDebugger=1
  28. ;
  29. ; Memory Fill.
  30. ;
  31. ; If FillMemory is non 0, EXCHMEM will fill allocated memory with the "AllocFillByte", and will fill
  32. ; freed memory with the "FreeFillByte". Note that the high bit should be on in both AllocFillByte
  33. ; and FreeFillByte to force a GP fault if freed (or uninitialized) memory is ever accessed.
  34. ;
  35. FillMemory=0
  36. AllocFillByte=0xFA
  37. FreeFillByte=0xCD
  38. ;
  39. ; Heap monitoring
  40. ;
  41. ; If MonitorHeap is non 0, and the DLL GLHMON32.DLL is present on the machine, This will invoke
  42. ; the MAPI heap monitor on all created heaps.
  43. ;
  44. MonitorHeap=0
  45. ;
  46. ; If TrackMemory is non 0, this will cause all allocations and frees to be written to the <program>.TRK file
  47. ; located in the log path directory. TrackMemoryInMemory keeps an array of
  48. ; <n> entries around containing the last memory functions called. This array
  49. ; can be dumped using the xmdbgext.lib cdb extension functions DumpLast and
  50. ; DumpNear.
  51. ;
  52. TrackMemory=0
  53. TrackMemoryInMemory=1000
  54. ; Symbol information
  55. ;
  56. ; If SymbolLookup is non 0, EXCHMEM will perform a symbol lookup on addresses before dumping
  57. ; them to either the debugger or to the trace file.
  58. ;
  59. ; StackFrames specifies the number of stack frames to capture when retrieving the call stack
  60. ; of allocations (and frees).
  61. ; SymPath specifies the symbol path to be used when looking for symbols.
  62. ;
  63. SymbolLookup=1
  64. StackFrames=12
  65. SymPath=
  66. ;
  67. ; If OverWriteDetect is non 0, this causes a 4 byte header and trailer to be added to each allocated
  68. ; block. This header is validated on every heap validation, and when memory is freed.
  69. ;
  70. OverwriteDetect=1
  71. ;
  72. ; If ValidateMemory is set, then the block passed into every Realloc, Free, or HeapSize API is validated.
  73. ; If an invalid block is detected, then it is dumped to the <program>.VAL file in the log path directory.
  74. ;
  75. ; If AssertValid is set, then an assert is raised when an invalid block is detected.
  76. ; If TrapOnInvalid is set, then a DebugBreak() exception is raised after the block was detected.
  77. ;
  78. ValidateMemory=1
  79. AssertValid=0
  80. TrapOnInvalid=1
  81. ;
  82. ; If TrackFreedMemory is set, EXCHMEM does not actually release freed blocks to the heap. Instead, it keeps
  83. ; the blocks on a free list and checks to see if a block being freed is on that list. This allows double
  84. ; frees to be detected.
  85. ;
  86. ; FreeMemorySize is the number of freed blocks to maintain.
  87. ;
  88. TrackFreedMemory=1
  89. FreedMemorySize=512
  90. ;
  91. ; LogPath specifies the directory to write the <program>.TRK, <program>,MEM, and <program>.VAL files.
  92. ;
  93. LogPath=c:\exchsrvr
  94. ;
  95. ; Artifical failures. This describes how often calls to the allocator should fail.
  96. ;
  97. [Heap Resource Failures]
  98. FailuresEnabled=0
  99. AllocsToFirstFailure=0
  100. FailureInterval=0
  101. FailureSize=0
  102. FaultingAllocationNumber=0
  103. ;
  104. ; The "Apps To Track" section specifies the applications that are to run
  105. ; with EXCHMEM debugging enabled. By default, debugging is NOT enabled.
  106. ;
  107. [Apps To Track]
  108. mad=0
  109. store=0
  110. dsamain=0
  111. emsmta=0