Skip to content

Commit 440a899

Browse files
committed
DPL: reduce number of spurious warnings
1 parent 8936d29 commit 440a899

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

Framework/Core/src/DataProcessingDevice.cxx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,14 +1420,24 @@ void DataProcessingDevice::Run()
14201420
}
14211421
return missingInfo.empty() ? std::string(" (policy: ") + spec.resourcePolicy.name + ")" : " -" + missingInfo;
14221422
};
1423+
auto const timeSinceLastScheduled = lastSched ? uv_now(state.loop) - lastSched : 0;
14231424
if (schedulingStats.numberOfUnscheduledSinceLastScheduled >= schedulingStats.nextWarnAt) {
14241425
auto const missingStr = buildMissingInfo();
1425-
O2_SIGNPOST_EVENT_EMIT_WARN(scheduling, sid, "Run",
1426-
"Not enough resources to schedule computation on stream %d. %zu consecutive skips%s. Missing:%s. Data is not lost and it will be scheduled again.",
1427-
streamRef.index,
1428-
schedulingStats.numberOfUnscheduledSinceLastScheduled.load(),
1429-
schedInfo.c_str(),
1430-
missingStr.c_str());
1426+
if (timeSinceLastScheduled >= 50) {
1427+
O2_SIGNPOST_EVENT_EMIT_WARN(scheduling, sid, "Run",
1428+
"Not enough resources to schedule computation on stream %d. %zu consecutive skips%s. Missing:%s. Data is not lost and it will be scheduled again.",
1429+
streamRef.index,
1430+
schedulingStats.numberOfUnscheduledSinceLastScheduled.load(),
1431+
schedInfo.c_str(),
1432+
missingStr.c_str());
1433+
} else {
1434+
O2_SIGNPOST_EVENT_EMIT(scheduling, sid, "Run",
1435+
"Not enough resources to schedule computation on stream %d. %zu consecutive skips%s. Missing:%s. Data is not lost and it will be scheduled again.",
1436+
streamRef.index,
1437+
schedulingStats.numberOfUnscheduledSinceLastScheduled.load(),
1438+
schedInfo.c_str(),
1439+
missingStr.c_str());
1440+
}
14311441
schedulingStats.nextWarnAt = schedulingStats.nextWarnAt * 2;
14321442
} else {
14331443
auto const missingStr = buildMissingInfo();

0 commit comments

Comments
 (0)