Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New exec code path rebased #33070

Closed
wants to merge 5,455 commits into from

Conversation

ryoqun
Copy link
Member

@ryoqun ryoqun commented Aug 30, 2023

this is yet another pr for unified scheduler (prev: #31239)

todo

  • rename new crate and publish boilerplate ones.
  • handle replay_apply_costs
  • considering early-bail-out even for sending transactions to scheduler in the case of encountering fatal tx errors.
  • proper drop impl.
  • fix metrics.
  • track down or triage the commit on frozen bank panic... Prioritize blocked task messaging over idle tasks anza-xyz/agave#627 (comment)
  • expose --unified-scheduler-handler-threads=N
  • expose --unified-scheduler-individual-transaction-timings?

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

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

Comparison is base (60ccdb3) 81.5% compared to head (22800d3) 81.3%.
Report is 1 commits behind head on master.

❗ Current head 22800d3 differs from pull request most recent head ffb457f. Consider uploading reports for the commit ffb457f to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #33070     +/-   ##
=========================================
- Coverage    81.5%    81.3%   -0.3%     
=========================================
  Files         834      835      +1     
  Lines      224876   226614   +1738     
=========================================
+ Hits       183496   184448    +952     
- Misses      41380    42166    +786     

fn pool(&self) -> InstalledSchedulerPoolArc<SEA> {
self.pool.clone()
fn return_to_pool(self: Box<Self>) {
self.pool.clone().return_scheduler(self)
Copy link
Member Author

Choose a reason for hiding this comment

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

here

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, the .clone() can be removed, btw... ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

well, never mind. i can't. borrow checker would complain...

Comment on lines 114 to 121
pub fn return_scheduler(&self, scheduler: Box<dyn InstalledScheduler<SEA>>) {
assert!(scheduler.context().is_none());

self.schedulers
.lock()
.expect("not poisoned")
.push(scheduler);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

here 2

@github-actions github-actions bot added stale [bot only] Added to stale content; results in auto-close after a week. and removed stale [bot only] Added to stale content; results in auto-close after a week. labels Nov 20, 2023
Comment on lines 5215 to 5265
self.loaded_programs_cache
.write()
.unwrap()
Copy link
Member Author

Choose a reason for hiding this comment

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

here

Comment on lines +246 to +251
// this cuts circular references of BankForks...
root_bank
.loaded_programs_cache
.write()
.unwrap()
.unset_fork_graph();
Copy link
Member Author

@ryoqun ryoqun Feb 2, 2024

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

this file!

@willhickey
Copy link
Contributor

This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants