Appendix C. MTS Environment VariablesΒΆ
The following is a table describing the environment variables that effect the functionality of MTS.
Environment Variable | Description |
---|---|
MTS_HEAP_COUNT = N | Set the number of fixed virtual heaps to N where N > 0. Doesn’t affect the per,thread heaps. Default count is min (#cpus, 16) |
MTS_BADFREE_EXIT=EXIT | Causes MTS to abort() on a bad free. |
MTS_LARGE_SIZE_WARNING = N | Issues warnings when malloc sizes > N where N must be > 60k |
MTS_PRINT_COUNTS = 1 | Print stats on exit. |
MTS_PRINT_STATS = N | print stats every N seconds to stdout. |
MTS_PAGE_RECYCLE_GLOBAL = N | N pages stay local to heap. Default is 8. 0 means that all pages are recycled immediatly when they become empty. |
MTS_BLOCK_SIZE = S | S must be >= 64k. Default is 512k. Allocations of S or greater are directly,memory mapped and unmapped when free() is called. Due to syscalls, it’s slow, but large allocations tend to persist and when freed are unmapped from app space,for optimum reuse. |
MTS_SPIN_COUNT = N | Change the default spin lock count before a yield is called. |
MTS_HUGE_PAGES = 1 | For RHEL 6 and higher use huge pages by calling mmap() with MAP_HUGETLB set. Make sure sufficient quantity of HUGE PAGES are available from the OS. |
MTS_MAP_LOCKED = 1 | Use MAP_LOCKED for MTS calls to mmap. Needs special privliges. |
MTS_MAP_POPULATE = 1 | Use MAP_POPULATE for MTS calls to mmap. |
MTS_PREFAULT_MEMORY = 1 | Cause MTS to touch each mmaped page. |
MTS_MEMORY_CALLBACK_DISABLE = 1 | Cause MTS to ignore registered memory callback. |