Skip to content

Commit

Permalink
osd/OSD: wakeup all threads of shard.
Browse files Browse the repository at this point in the history
In our test(4NVME), we found for 4K randread(8/16 mean shard, 2/1 mean
thread_per_shard):
QD	8_2(IOPS(k))	16_1(IOPS(K))	8_2(apply patch)
32	 191		 263		 263.5

Signed-off-by: Jianpeng Ma <[email protected]>
  • Loading branch information
majianpeng committed Apr 21, 2020
1 parent 18734af commit d1cf3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10728,7 +10728,7 @@ void OSD::ShardedOpWQ::_enqueue(OpSchedulerItem&& item) {

if (empty) {
std::lock_guard l{sdata->sdata_wait_lock};
sdata->sdata_cond.notify_one();
sdata->sdata_cond.notify_all();
}
}

Expand Down

0 comments on commit d1cf3fb

Please sign in to comment.