Updating the thread with the current state of huge page support (to make it more relevant for search):
The Intel TBB memory allocator supports huge pages on Linux since v4.1, i.e. for several years. The use of huge pages should be explicitly enabled by calling scalable_allocation_mode(TBBMALLOC_USE_HUGE_PAGES, 1), or by setting TBB_MALLOC_USE_HUGE_PAGES environment variable to 1; the latter variant is useful when you substitute the standard malloc routines with the tbbmalloc_proxy library. Of course the system/kernel should first be configured to allocate huge pages.
Since TBB 2017 Update 7, the TBB memory allocator also supports so-called transparent huge pages, which are automatically allocated by the Linux kernel when suitable. Due to possible negative impact of huge pages to application performance, their use still has to be enabled explicitly, in the same way as I described above.
Additional information about the subject can be found in the documentation: https://www.threadingbuildingblocks.org/docs/help/reference/memory_allocation/c_interface_to_scalabl...