Skip to content
Snippets Groups Projects
Commit 1b7295a9 authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'use-scheduler-hint-stats' into 'master'

[AbstractWorkStealingStats] actually use hint stats

See merge request i4/manycore/emper!267
parents 267e9876 7822b0e1
No related branches found
No related tags found
No related merge requests found
...@@ -168,6 +168,7 @@ popBottom: ...@@ -168,6 +168,7 @@ popBottom:
if (stolen) { if (stolen) {
fiber = (*stolen).first; fiber = (*stolen).first;
fiberSource = FiberSource::hintWsq; fiberSource = FiberSource::hintWsq;
emper::statsIncr(awss::stats.nextFiberFromHintLocal);
goto out; goto out;
} }
} break; } break;
...@@ -177,6 +178,7 @@ popBottom: ...@@ -177,6 +178,7 @@ popBottom:
if (fromAnywhere) { if (fromAnywhere) {
fiber = (*fromAnywhere).first; fiber = (*fromAnywhere).first;
fiberSource = FiberSource::hintAq; fiberSource = FiberSource::hintAq;
emper::statsIncr(awss::stats.nextFiberFromHintAnywhere);
goto out; goto out;
} }
break; break;
......
...@@ -10,6 +10,8 @@ auto AbstractWorkStealingWorkerStats::operator+=(const AbstractWorkStealingWorke ...@@ -10,6 +10,8 @@ auto AbstractWorkStealingWorkerStats::operator+=(const AbstractWorkStealingWorke
scheduledFibersToOverflowQueue += other.scheduledFibersToOverflowQueue; scheduledFibersToOverflowQueue += other.scheduledFibersToOverflowQueue;
maxQueueLength = std::max(maxQueueLength, other.maxQueueLength); maxQueueLength = std::max(maxQueueLength, other.maxQueueLength);
nextFiberFromLocal += other.nextFiberFromLocal; nextFiberFromLocal += other.nextFiberFromLocal;
nextFiberFromHintLocal += other.nextFiberFromHintLocal;
nextFiberFromHintAnywhere += other.nextFiberFromHintAnywhere;
nextFiberStolen += other.nextFiberStolen; nextFiberStolen += other.nextFiberStolen;
nextFiberFromAnywhereQueue += other.nextFiberFromAnywhereQueue; nextFiberFromAnywhereQueue += other.nextFiberFromAnywhereQueue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment