JCTools icon indicating copy to clipboard operation
JCTools copied to clipboard

Back-pressure on xadd qs

Open franz1981 opened this issue 4 years ago • 2 comments

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?

franz1981 avatar Nov 09 '19 16:11 franz1981

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

nitsanw avatar Nov 19 '19 12:11 nitsanw

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 :+1:

franz1981 avatar Nov 19 '19 13:11 franz1981