Github user michaelandrepearce commented on the issue: https://github.com/apache/activemq-artemis/pull/2484 @qihongxu, re: " According to this we have an internal branch that removes isPaging() methodâs readlock in PagingStoreImpl, along with adding pageSyncTimerâs specific executor. After that we performed a same test and get a result of 21k/25k Send&Receiveâin total 46k TPS. This version runs smoothly in our use case but we are still exploring potential effects. " Agree that as the QueueImpl:checkDepage which is called from deliver method, only schedules another depage asynchronously that the read barrier lock for that is over kill as it doesn't have to be strongly consistent correct. I think changing the current method could be dangerous, unless we do a fuller analysis on all its uses, but i think we could easily add a new method named something like "isPagingDirtyRead" which can return without the readlock, it will mean the returned value isn't always 100% accurate but in cases such as checkDepage, we don't need it to be, its just a single. Would you be happy adding this, (will need to be exposed via PageSubscription)? And updating checkDepage to use that one?
---