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

Speed up requests after other requests finished and freed CPU #79

Open
juliababkina opened this issue Jun 10, 2020 · 2 comments
Open

Speed up requests after other requests finished and freed CPU #79

juliababkina opened this issue Jun 10, 2020 · 2 comments

Comments

@juliababkina
Copy link
Contributor

Now the request will run with the capacity that it saw in the beginning. But in reality, when other requests finished and freed CPU, the request would speed up.
We need to apply this logic to the current cpu model.

@juliababkina
Copy link
Contributor Author

jchesterpivotal on Jun 6 comment
I ignored it in the original version and relied on the Sakasegawa approximation. I'd put off a deeper simulation like this one as a placeholder, because I felt it would become a serious rabbit hole. There's a queueing theory finding called the "arrival theorem", loosely that an arrival sees the same time averages as an outside observer would. In that sense the figure we calculate at arrival time encodes the future evolution of the queue.

But some day I would definitely like to increase model fidelity. I don't feel mathematically mature enough to state confidently whether the arrival theorem applies in this case.

@juliababkina
Copy link
Contributor Author

To what extent do we need to handle it?
Let’s see deeply.
Screenshot 2020-07-14 at 2 55 05 PM
At first, it seems that it’s pretty reasonable to speed up Request 5. But let’s look into the situation when we take advantage of it.
Screenshot 2020-07-14 at 2 57 25 PM
As we see in the picture we can benefit from injecting speeding-up logic into the model only in such a kind of situation. But this situation is highly unlikely.

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

No branches or pull requests

1 participant