Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions Framework/Core/src/DataProcessingDevice.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1420,14 +1420,24 @@ void DataProcessingDevice::Run()
}
return missingInfo.empty() ? std::string(" (policy: ") + spec.resourcePolicy.name + ")" : " -" + missingInfo;
};
auto const timeSinceLastScheduled = lastSched ? uv_now(state.loop) - lastSched : 0;
if (schedulingStats.numberOfUnscheduledSinceLastScheduled >= schedulingStats.nextWarnAt) {
auto const missingStr = buildMissingInfo();
O2_SIGNPOST_EVENT_EMIT_WARN(scheduling, sid, "Run",
"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.",
streamRef.index,
schedulingStats.numberOfUnscheduledSinceLastScheduled.load(),
schedInfo.c_str(),
missingStr.c_str());
if (timeSinceLastScheduled >= 50) {
O2_SIGNPOST_EVENT_EMIT_WARN(scheduling, sid, "Run",
"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.",
streamRef.index,
schedulingStats.numberOfUnscheduledSinceLastScheduled.load(),
schedInfo.c_str(),
missingStr.c_str());
} else {
O2_SIGNPOST_EVENT_EMIT(scheduling, sid, "Run",
"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.",
streamRef.index,
schedulingStats.numberOfUnscheduledSinceLastScheduled.load(),
schedInfo.c_str(),
missingStr.c_str());
}
schedulingStats.nextWarnAt = schedulingStats.nextWarnAt * 2;
} else {
auto const missingStr = buildMissingInfo();
Expand Down