hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
282 stars 124 forks source link

Performance regression in ThrottleAccumulator #14368

Open OlegMazurov opened 2 months ago

OlegMazurov commented 2 months ago

Description

Calling getAutoAssociationsCount() from ThrottleAccumulator.shouldThrottleTxn() (introduced by #13909) causes a severe performance regression due to #10998. Adding disk operations to a critical section creates contention between netty threads and reduces TPS.

Steps to reproduce

Run NftTransferLoadTest in single-node mode.

Additional context

No response

Hedera network

No response

Version

0.53.0

Operating system

Linux

OlegMazurov commented 1 month ago

A workaround is implemented in #14498.