From 09c4d6239c0bd18fdeb15e99d6de43ea3c68fcef Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 25 Feb 2018 12:24:48 +0100 Subject: build: Reduce default buffer size to 4096 blocks This reduces the default buffer size to 4096 blocks (about 16MB). This will avoid problems when users try a default build on smaller machines. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 8e09c427..4757f882 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -135,8 +135,7 @@ mark_as_advanced(LIBRT_LIBRARIES LIBPTHREAD_LIBRARIES LIBGCRYPT_LIBRARIES OPENSSL_LIBRARIES SYS_RND_INCLUDE_DIR LIBGCRYPT_INCLUDE_DIR SYS_RND_HDR) -math(EXPR SHM_BUFFER_EXPR "1 << 17") -set(SHM_BUFFER_SIZE ${SHM_BUFFER_EXPR} CACHE STRING +set(SHM_BUFFER_SIZE 4096 CACHE STRING "Number of blocks in SDU buffer, must be a power of 2") set(SYS_MAX_FLOWS 10240 CACHE STRING "Maximum number of total flows for this system") -- cgit v1.2.3