Skip to content

Commit 016830f

Browse files
authored
Merge pull request ceph#52091 from cyx1231st/wip-seastar-msgr-multi-core-perf
crimson/tools/perf_crimson_msgr: integrate multi-core msgr with various improvements Reviewed-by: Samuel Just <[email protected]>
2 parents 2f6e4f7 + a2df1d0 commit 016830f

File tree

2 files changed

+719
-247
lines changed

2 files changed

+719
-247
lines changed

src/crimson/tools/perf_async_msgr.cc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ int main(int argc, char** argv)
9494
("bs", po::value<unsigned>()->default_value(0),
9595
"server block size")
9696
("crc-enabled", po::value<bool>()->default_value(false),
97-
"enable CRC checks");
97+
"enable CRC checks")
98+
("threads", po::value<unsigned>()->default_value(3),
99+
"async messenger worker threads");
98100
po::variables_map vm;
99101
std::vector<std::string> unrecognized_options;
100102
try {
@@ -120,6 +122,7 @@ int main(int argc, char** argv)
120122
ceph_assert_always(target_addr.is_msgr2());
121123
auto bs = vm["bs"].as<unsigned>();
122124
auto crc_enabled = vm["crc-enabled"].as<bool>();
125+
auto worker_threads = vm["threads"].as<unsigned>();
123126

124127
std::vector<const char*> args(argv, argv + argc);
125128
auto cct = global_init(nullptr, args,
@@ -136,5 +139,13 @@ int main(int argc, char** argv)
136139
cct->_conf.set_val("ms_crc_data", "false");
137140
}
138141

142+
cct->_conf.set_val("ms_async_op_threads", fmt::format("{}", worker_threads));
143+
144+
std::cout << "server[" << addr
145+
<< "](bs=" << bs
146+
<< ", crc_enabled=" << crc_enabled
147+
<< ", worker_threads=" << worker_threads
148+
<< std::endl;
149+
139150
run(cct.get(), target_addr, bs);
140151
}

0 commit comments

Comments
 (0)