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

Mixing different types of loads: network, file, CPU #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

beta-ziliani
Copy link

Here EC really shines. With -Dpreview_mt -Dec -Dmt it gets 1.8 req/s, while with just -Dpreview_mt it's less than 0.5. This is expected: if two CPU heavy tasks end in the same thread, since there's no snatching of tasks, it swamps the thread that then can't take further tasks.

@ysbaddaden
Copy link
Owner

ysbaddaden commented Sep 13, 2024

Even if both CPU heavy tasks only block one thread, preview_mt keeps to round-robin spawn fibers to each threads, so 1/N of them will be sent to the blocked thread.

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