Skip to content

Conversation

@vlovich
Copy link
Contributor

@vlovich vlovich commented Sep 19, 2025

In high performance systems there may be a significant number of concurrent futures all sleeping and 32768 is quite a low limit. 2 billion is a bit more reasonable and significantly less likely to be hit in practice.

What does this PR do?

Glommio can support more than 32768 concurrent futures.

Motivation

I observed that I can end up with this many futures in the task queue in certain high performance scenarios and in general it's super easy to bump into when it's hard to coalesce multiple futures behind a single waker.

Related issues

Additional Notes

The unit test isn't realistic in terms of what I've observed triggers this but I don't know right now how to write a more realistic version that triggers when the refcount is i16.

Checklist

[X] I have added unit tests to the code I am submitting
[X] My unit tests cover both failure and success scenarios
[] If applicable, I have discussed my architecture

In high performance systems there may be a significant number of
concurrent futures all sleeping and 32768 is quite a low limit.
2 billion is a bit more reasonable and significantly less likely to
be hit in practice.
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.

1 participant