Skip to content

Commit

Permalink
Change calculation of actorsystem usage 24-2 (ydb-platform#6271)
Browse files Browse the repository at this point in the history
  • Loading branch information
kruall authored and uzhastik committed Sep 9, 2024
1 parent 5bc65ca commit f8f340f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ydb/library/actors/helpers/pool_stats_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ 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 currentThreadCount = poolStats.PotentialMaxThreadCount;
const double elapsed = NHPTimer::GetSeconds(stats.ElapsedTicks);
Expand Down

0 comments on commit f8f340f

Please sign in to comment.