]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests_cache: give it more space
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 13 Nov 2017 09:41:25 +0000 (10:41 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 13 Nov 2017 09:48:29 +0000 (10:48 +0100)
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.

NEWS
tests/test_cache.c

diff --git a/NEWS b/NEWS
index 8a4c0966812d5092b1166a6083ac578dd229768d..5dc3bdf45393adae86e0bd765f561c9131084178 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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)
index bd2060427a69ac1706ea53c9b97ff4c42ecfc803..1ec0187334dd6ae17195d5040f11fa6aaac1be38 100644 (file)
@@ -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