summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-02-25 12:24:48 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-02-26 10:33:18 +0100
commit09c4d6239c0bd18fdeb15e99d6de43ea3c68fcef (patch)
tree76bc90a5a691b03ee468a1de52156f2c61f8a68c /src
parentbce73ec34942f3381d7e00701d5366502ec375ab (diff)
downloadouroboros-09c4d6239c0bd18fdeb15e99d6de43ea3c68fcef.tar.gz
ouroboros-09c4d6239c0bd18fdeb15e99d6de43ea3c68fcef.zip
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 <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src')
-rw-r--r--src/lib/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
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")