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

Implemented various backoffs and per-CPU rng #130

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

Sssssaltyfish
Copy link
Contributor

  1. Modified crates/spinlock to provide support for multiple backoff strategies when encountering lock contention, including exp-backoff and rand-exp-backoff.

  2. Modified BaseSpinLock in crates/spinlock to support locking with a different guard/backoff type, providing more flexibility.

  3. Added a new module ruxrand that aims to provide support for the usage of RNGs inside kernel. Currently a per-CPU RNG and support for rand-exp-backoff in spinlock are implemented.

  4. Changed the lock type used by RunQueue.

crates/spinlock/src/rand_strategy.rs Outdated Show resolved Hide resolved
modules/ruxrand/src/spin_rand.rs Outdated Show resolved Hide resolved
1. Modified crates/spinlock to provide support for multiple backoff strategies
when encountering lock contention, including exp-backoff.

2. Modified `BaseSpinLock` in crates/spinlock to support locking with a
different guard/backoff type, providing more flexibility.

3. Added a new module `ruxrand` that aims to provide support for the usage
of RNGs inside kernel. Currently a per-CPU RNG and support for rand-exp-backoff
are implemented.

4. Changed the lock type used by `RunQueue`.
@ken4647 ken4647 merged commit a66b4bb into syswonder:dev Jul 18, 2024
10 checks passed
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