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

Back-pressure on xadd qs #271

Open
franz1981 opened this issue Nov 9, 2019 · 2 comments
Open

Back-pressure on xadd qs #271

franz1981 opened this issue Nov 9, 2019 · 2 comments

Comments

@franz1981
Copy link
Collaborator

franz1981 commented Nov 9, 2019

Xadd qs can check if there are free chunks available before performing an offer: it would enable a weak form of back-pressure depending on the configured pooled chunks.

Not sure If relaxedOffer is the right method to offer this, @nitsanw wdyt?

@nitsanw
Copy link
Contributor

nitsanw commented Nov 19, 2019

Is this to build some bounded capacity XADD queue? I need to dig deeper into the xadd queues before having this conversation I suspect :-)

@franz1981
Copy link
Collaborator Author

franz1981 commented Nov 19, 2019

Is this to build some bounded capacity XADD queue?

Yep altough is less precise then what we have on other CAS-based queues: the queue is still unbounded, but is trying to stop offering if there is an high chance to not reuse chunks.
Just a note: performance of this ATM are BAD, really BAD XD

I need to dig deeper into the xadd queues

That's my fault: I have changed them (especially mpmc) so many times that I haven't helped you to get a stable idea to work with :(
Anyway feel free to ping me on hangout and we can arrange a chat: I believe that in max 30 minutes of chat can cover both 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants