From 236d5a8608bc2d1f03395b53dbfcb5531906c4bd Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Thu, 28 May 2020 15:04:24 +0200 Subject: [PATCH] Let default shm segm size be multiple of page size To allow potential optimizations (e.g. huge pages) --- fairmq/plugins/config/Config.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairmq/plugins/config/Config.cxx b/fairmq/plugins/config/Config.cxx index bad43b18..99fa3429 100644 --- a/fairmq/plugins/config/Config.cxx +++ b/fairmq/plugins/config/Config.cxx @@ -68,7 +68,7 @@ Plugin::ProgOptions ConfigPluginProgramOptions() ("init-timeout", po::value()->default_value(120), "Timeout for the initialization in seconds (when expecting dynamic initialization).") ("max-run-time", po::value()->default_value(0), "Maximum runtime for the Running state handler, after which state will change to Ready (in seconds, 0 for no limit).") ("print-channels", po::value()->implicit_value(true), "Print registered channel endpoints in a machine-readable format (::)") - ("shm-segment-size", po::value()->default_value(2000000000), "Shared memory: size of the shared memory segment (in bytes).") + ("shm-segment-size", po::value()->default_value(2ULL << 30), "Shared memory: size of the shared memory segment (in bytes).") ("shm-throw-bad-alloc", po::value()->default_value(true), "Throw a fair::mq::MessageBadAlloc if cannot allocate a message (retry if false).") ("shm-monitor", po::value()->default_value(true), "Shared memory: run monitor daemon.") ("ofi-size-hint", po::value()->default_value(0), "EXPERIMENTAL: OFI size hint for the allocator.")