Skip to content

Commit

Permalink
reactor: let the resource code specify the default memory reserve
Browse files Browse the repository at this point in the history
Instead of hard-coding 512M and bypassing the clever memory reserve code,
let the resource code compute the default.
  • Loading branch information
avikivity committed Dec 9, 2015
1 parent c8b4034 commit c324e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ smp::get_options_description()
("smp,c", bpo::value<unsigned>(), "number of threads (default: one per CPU)")
("cpuset", bpo::value<cpuset_wrapper>(), "CPUs to use (in cpuset(7) format; default: all))")
("memory,m", bpo::value<std::string>(), "memory to use, in bytes (ex: 4G) (default: all)")
("reserve-memory", bpo::value<std::string>()->default_value("512M"), "memory reserved to OS")
("reserve-memory", bpo::value<std::string>(), "memory reserved to OS (if --memory not specified)")
("hugepages", bpo::value<std::string>(), "path to accessible hugetlbfs mount (typically /dev/hugepages/something)")
;
return opts;
Expand Down

0 comments on commit c324e58

Please sign in to comment.