This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Read CU's also need to count towards account limits #25594
Labels
stale
[bot only] Added to stale content; results in auto-close after a week.
Problem
The goal of account-CU limits is to limit the amount of linear work that has to be done in a block.
Right now only write CU's count towards accounts limits.
However, read-CU's also create linear work when sandwiched between two write locks, for instance
In this scenario
max(R1, R2)
must be llnearized with W1 and W2, but this is not captured in the cost model.Proposed Solution
Track the max read compute units between two writes on the same account and add that to the per-account costs
cc @aeyakovenko, @sakridge
The text was updated successfully, but these errors were encountered: