Skip to content

Commit

Permalink
Add message recommending environment variables for mimalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 3, 2022
1 parent 618df26 commit ad16114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/pika_setup_allocator.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ if(NOT TARGET pika_dependencies_allocator)
)
endif()
set(_use_custom_allocator TRUE)

pika_warn(
"pika is using mimalloc as the allocator. Typically, exporting the following environment variables will further improve performance: MIMALLOC_EAGER_COMMIT_DELAY=0 and MIMALLOC_LARGE_OS_PAGES=1."
)
endif()

# ##########################################################################
Expand Down

0 comments on commit ad16114

Please sign in to comment.