mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Memory allocator tweaking
TODO: make this configurable
This commit is contained in:
parent
951d0422fa
commit
ea4aef2a14
@ -30,10 +30,10 @@
|
||||
long page_size = 0;
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
# define KEEP_PAGES_MAX 512
|
||||
# define KEEP_PAGES_MAX 16384
|
||||
# define KEEP_PAGES_MIN 32
|
||||
# define KEEP_PAGES_MAX_LOCAL 16
|
||||
# define ALLOC_PAGES_AT_ONCE 8
|
||||
# define KEEP_PAGES_MAX_LOCAL 128
|
||||
# define ALLOC_PAGES_AT_ONCE 32
|
||||
|
||||
STATIC_ASSERT(KEEP_PAGES_MIN * 4 < KEEP_PAGES_MAX);
|
||||
STATIC_ASSERT(ALLOC_PAGES_AT_ONCE < KEEP_PAGES_MAX_LOCAL);
|
||||
|
Loading…
Reference in New Issue
Block a user