Skip to content

Commit

Permalink
Revert "Change calculation of actorsystem usage 24-2" (ydb-platform#6337
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kruall authored and uzhastik committed Jul 5, 2024
1 parent fd75036 commit 9b7476e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ydb/library/actors/helpers/pool_stats_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ class TStatsCollectingActor : public TActorBootstrapped<TStatsCollectingActor> {

double seconds = UsageTimer.PassedReset();

numThreads = poolStats.PotentialMaxThreadCount;

// TODO[serxa]: It doesn't account for contention. Use 1 - parkedTicksDelta / seconds / numThreads KIKIMR-11916
const double elapsed = NHPTimer::GetSeconds(stats.ElapsedTicks);
const double currentUsage = numThreads > 0 ? ((elapsed - LastElapsedSeconds) / seconds / numThreads) : 0;
Expand Down

0 comments on commit 9b7476e

Please sign in to comment.