Commit 3ff591a6 authored by Vladimír Čunát's avatar Vladimír Čunát

tests_cache: give it more space

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878976
In general, platforms with page size other than 4k might better compile
with -DCPU_PAGE_SIZE=nnnnn but real impact should only be this test and
better alignment in the mempool allocator.
parent 2ba2a5e8
......@@ -4,6 +4,7 @@ Knot Resolver 1.5.1 (2017-1x-yy)
Bugfixes
--------
- fix SIGPIPE crashes
- tests: work around out-of-space for platforms with larger memory pages
Knot Resolver 1.5.0 (2017-11-02)
......
......@@ -35,7 +35,7 @@ struct kr_cache_entry global_fake_ce;
uint8_t namedb_data[NAMEDB_DATA_SIZE];
knot_db_val_t global_namedb_data = {namedb_data, NAMEDB_DATA_SIZE};
#define CACHE_SIZE 10 * 4096
#define CACHE_SIZE (64 * CPU_PAGE_SIZE)
#define CACHE_TTL 10
#define CACHE_TIME 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment