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

Add another TLArbiter Policy "highestIndexFirst" #2587

Merged
merged 4 commits into from
Aug 11, 2020

Conversation

hcook
Copy link
Member

@hcook hcook commented Aug 5, 2020

This PR adds a third Policy option to the TLArbiter object, highestIndexFirst. Unsurprisingly it is the dual of lowestIndexFirst. My motivation is that sometimes it is easier to toggle the policy than to swap the order in which things get connected to the arbiter/xbar by Scala code execution order. (I continue to recommend that users favor roundRobin unless you are absolutely certain your use case is resilient to live-lock scenarios engendered by used of a fixed arbitration scheme.)

I also refactored the TLArbiter unit tests and added the two policies that have easily-determined outcomes to the regressions. (It looks like unit test regressions are actually turned off because of some github actions memory restriction but I will make sure they pass locally before merging this.)

Type of change: other enhancement

Impact: API addition (no impact on existing code)

Development Phase: implementation

Release Notes

@hcook hcook changed the title Add another TLArbiter Policy Add another TLArbiter Policy "highestIndexFirst" Aug 5, 2020
@hcook hcook force-pushed the tl-highest-priority-first branch from 543d872 to 5505bfd Compare August 5, 2020 20:06
@@ -52,6 +52,8 @@ class WithTLSimpleUnitTests extends Config((site, here, up) => {
Module(new TLFuzzRAMTest( txns= 3*txns, timeout=timeout)),
Module(new TLRR0Test( txns= 3*txns, timeout=timeout)),
Module(new TLRR1Test( txns= 3*txns, timeout=timeout)),
Module(new TLArbiterLowestTest( txns= 3*txns, timeout=timeout)),
Module(new TLArbiterHighestTest( txns= 3*txns, timeout=timeout)),
Copy link
Member

Choose a reason for hiding this comment

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

💯

@hcook hcook force-pushed the tl-highest-priority-first branch from fad55b9 to 30a2521 Compare August 6, 2020 22:11
@hcook hcook merged commit 2bdb03d into master Aug 11, 2020
@hcook hcook deleted the tl-highest-priority-first branch September 3, 2020 19:07
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.

4 participants