Skip to content
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

Closed
carllin opened this issue May 26, 2022 · 0 comments
Closed

Read CU's also need to count towards account limits #25594

carllin opened this issue May 26, 2022 · 0 comments
Assignees
Labels
stale [bot only] Added to stale content; results in auto-close after a week.

Comments

@carllin
Copy link
Contributor

carllin commented May 26, 2022

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

W1 - R1 - R2 - W2

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

@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label May 29, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale [bot only] Added to stale content; results in auto-close after a week.
Projects
None yet
Development

No branches or pull requests

2 participants