Skip to content

Add blocking function to block osd thread when CoDel condition is violated #17

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

yzhan298
Copy link
Collaborator

@yzhan298 yzhan298 commented Mar 3, 2020

When we set the kvQ capacity to 1, we allow 1 reqs to get into the kvQ. For these two lines:

env.process(osdClient(env, 1, meanInterArrivalTime * 2, meanReqSize, osdQ1))
env.process(osdClient(env, 2, meanInterArrivalTime * 2, meanReqSize, osdQ1))

Does it mean that we should get the ten in order 2,1,2,1,2,1.,..?
But I noticed that we could have order 2,1,2,1,1,2,.... Does this mean we have a priority inversion?
If so, we could count the number of inversion.

The result is shown in the CoDelTest/simulation-codel-out.ipynb. I can compare the inversion number, average throughput, and average latency between blocking and non-blocking case.

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