Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Metrics prioritization fees #34653

Merged

Conversation

godmodegalactus
Copy link
Contributor

Problem

Currently there are not enough metrics about prioritization fees for each thread processing transactions. We need few more metrics to track how prioritization fees are respected by the validator. As we are on the verge of changing the scheduler metrics like these could be very important.

Summary of Changes

Adding a metrics which tracks min and max prioritization fees in the heap before starting to build the block.
Adding a metrics which tracks min and max prioritization fees for transactions that are scheduled for execution.

Fixes #

Copy link

codecov bot commented Jan 4, 2024

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (8ff511e) 81.6% compared to head (145e588) 81.6%.
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34653     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%     
=========================================
  Files         827      827             
  Lines      223884   223980     +96     
=========================================
+ Hits       182841   182893     +52     
- Misses      41043    41087     +44     

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple more changes, most minor but one which would lead to incorrectly reported metrics for the minimum.

Sorry for taking so long on this round of the review, I think these are the last changes; then we can kick off ci and merge.

.filter_map(|transaction| {
let round_compute_unit_price_enabled = false; // TODO get from working_bank.feature_set
transaction
.get_transaction_priority_details(round_compute_unit_price_enabled)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is scanning through all transaction ixs to get the priority. @taozhu-chicago - this is another case motivating the RuntimeTransaction that carries meta 😢

@apfitzge
Copy link
Contributor

@godmodegalactus looks like this needs to be rebased or have master merged in - CI is flagging because of a vulnerability in a dependency.

@godmodegalactus
Copy link
Contributor Author

@godmodegalactus looks like this needs to be rebased or have master merged in - CI is flagging because of a vulnerability in a dependency.

Fixed

@godmodegalactus
Copy link
Contributor Author

Merge ?

@tao-stones tao-stones merged commit 35f900b into solana-labs:master Feb 1, 2024
35 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants