mirror of
https://github.com/schoebel/mars
synced 2025-03-29 14:56:39 +00:00
make: add compiletime preset for expected_resources
This commit is contained in:
parent
fa31059a80
commit
ed6610a3f2
@ -234,6 +234,15 @@ config MARS_MEM_MAX_RESERVE
|
||||
May be enabled when encountering suchalike problems
|
||||
(known as accurring very rare, but may happen).
|
||||
|
||||
config MARS_EXPECTED_RESOURCES
|
||||
int "optimize mem pre-alloc for expected_resources"
|
||||
depends on MARS_MEM_MAX_RESERVE
|
||||
default 12
|
||||
help
|
||||
In rare cases, when new resources are added to primaries,
|
||||
the allocation of higher-order pages may lead to OOM.
|
||||
Avoid this by pre-allocation at modprobe time.
|
||||
|
||||
config MARS_FAST_FULLSYNC
|
||||
bool "decrease network traffic at initial sync"
|
||||
depends on MARS
|
||||
|
@ -252,7 +252,7 @@ void _crashme(int mode, bool do_sync)
|
||||
#define MARS_MEMRESERVE_ORDER 5
|
||||
#define MEMRESERVE_FACTOR_5 32
|
||||
|
||||
int expected_resources;
|
||||
int expected_resources = CONFIG_MARS_EXPECTED_RESOURCES;
|
||||
int nr_affected_resources;
|
||||
int tmp_nr_affected_resources;
|
||||
int nr_prosumer_resources;
|
||||
|
Loading…
Reference in New Issue
Block a user