mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
079b52fa93
* Revert "Revert "Remove `mmap/mremap/munmap` from Allocator.h" (#52589)"
This reverts commit 0a838dc6d1
.
* pre-fault pages
* upd contrib to merge commit
* limit log rate
* Update Allocator.h
---------
Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
11 lines
387 B
C++
11 lines
387 B
C++
#include "Allocator.h"
|
|
|
|
|
|
/// Constant is chosen almost arbitrarily, what I observed is 128KB is too small, 1MB is almost indistinguishable from 64MB and 1GB is too large.
|
|
extern const size_t POPULATE_THRESHOLD = 16 * 1024 * 1024;
|
|
|
|
template class Allocator<false, false>;
|
|
template class Allocator<true, false>;
|
|
template class Allocator<false, true>;
|
|
template class Allocator<true, true>;
|