Uh oh!
There was an error while loading. Please reload this page.
Artemis 2562 Reduces context-switches on iocb pool - #6
Conversation
| * @param theControl | ||
| */ | ||
| static inline void iocb_destroy(struct io_control * theControl) { | ||
| iocb_destroy_bounded(theControl, theControl->queueSize); |
There was a problem hiding this comment.
it should really be the queueSize here for correctness... at this point queueSize should be == available though, in which case you could assert.
clebertsuconic
commented
Nov 25, 2019
At least testsuite is passing here, it compiles using docker and tests are ok. |
franz1981
commented
Nov 25, 2019
via email
You're right but the risk is that If the pooled iocb won't go into the pool
we will free it, making the kernel to segsv on the first access...I would
prefer a leak then a segmentation fault, but I agree that some warns
should be printed
Il lun 25 nov 2019, 20:58 clebertsuconic <notifications@github.com> ha
scritto: … ***@***.**** commented on this pull request.
------------------------------
In src/main/c/org_apache_activemq_artemis_nativo_jlibaio_LibaioContext.c
<#6 (comment)>
:
> @@ -502,7 +502,7 @@ static inline void iocb_destroy_bounded(struct io_control * theControl, int uppe
* @PARAM theControl
*/
static inline void iocb_destroy(struct io_control * theControl) {
- iocb_destroy_bounded(theControl, theControl->queueSize);
it should really be the queueSize here for correctness... at this point
queueSize should be == available though, in which case you could assert.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEENM6YQ3M7BF323UHVC4TQVQU5BANCNFSM4JRNKCGQ>
.
|
michaelandrepearce
commented
Nov 26, 2019
You prefer a leak really??? If you get segfault will be alot easier to trace back. Both would be finally terminal better to have a quick death and know the cause, than a slow and silent one. |
Not sure about that if it would happen on kernel-side: you need to
I won't go in both the rabbit holes if possible :) |
franz1981
commented
Nov 26, 2019
The point is that if the kernel hasn't yet released the |
franz1981
commented
Nov 28, 2019
@michaelandrepearce any chance you can try it? I'm thinking to provide a pure spin poll version for users that have low latency disks (assuming the disk isn't yet maxed you , just thinking loud) :) |
No description provided.