Skip to content

Instantly share code, notes, and snippets.

@azat
Created May 22, 2020 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azat/095b0f48f8e3525df76dd2b36deae75e to your computer and use it in GitHub Desktop.
Save azat/095b0f48f8e3525df76dd2b36deae75e to your computer and use it in GitHub Desktop.
diff --git a/programs/benchmark/Benchmark.cpp b/programs/benchmark/Benchmark.cpp
index 91c43160e0..fed4823369 100644
--- a/programs/benchmark/Benchmark.cpp
+++ b/programs/benchmark/Benchmark.cpp
@@ -521,6 +521,11 @@ int mainEntryClickHouseBenchmark(int argc, char ** argv)
{
using boost::program_options::value;
+ const char *val = nullptr;
+ size_t size = sizeof(val);
+ assert(!mallctl("opt.percpu_arena", &val, &size, nullptr, 0));
+ std::cerr << "opt.percpu_arena: " << val << '\n';
+
boost::program_options::options_description desc = createOptionsDescription("Allowed options", getTerminalWidth());
desc.add_options()
("help", "produce help message")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment