[][src]Constant libmimalloc_sys::mi_option_large_os_pages

pub const mi_option_large_os_pages: mi_option_t = 6;

Option (experimental) to use large OS pages (2MiB in size) if possible.

Use large OS pages (2MiB) when available; for some workloads this can significantly improve performance. Use mi_option_verbose to check if the large OS pages are enabled -- usually one needs to explicitly allow large OS pages (as on Windows and Linux). However, sometimes the OS is very slow to reserve contiguous physical memory for large OS pages so use with care on systems that can have fragmented memory (for that reason, we generally recommend to use mi_option_reserve_huge_os_pages instead whenever possible).