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

Architecture change for IO #1

Open
3 tasks
mratsim opened this issue Jan 14, 2024 · 0 comments
Open
3 tasks

Architecture change for IO #1

mratsim opened this issue Jan 14, 2024 · 0 comments

Comments

@mratsim
Copy link
Owner

mratsim commented Jan 14, 2024

As of 0.2, the repo is a 1-1 copy of Constantine's threadpool: https://github.com/mratsim/constantine/tree/master/constantine/threadpool

That threadpool is optimized for compute tasks, i.e. tuned for throughput.

As explained in "Multithreading flavors: choosing the right scheduler for the right job", IO is a completely different beast and the scheduler should be tuned for task fairness and latency.

In short, tasks should be processed in a roughly first-in first-out basis at the very least, or with time budget/quotas or even priority support.

This outlines the steps needed to modify Weave-IO 0.2 to achieve this:

Architectural open problems:

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