This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new a3c05235ee NO-JIRA Adding comment about PollerThread
a3c05235ee is described below

commit a3c05235ee92eb88a176a61584c52d42a176ab96
Author: Clebert Suconic <[email protected]>
AuthorDate: Thu Jul 17 15:52:40 2025 -0400

    NO-JIRA Adding comment about PollerThread
---
 .../apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
 
b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
index 3f37958be9..feae694a1f 100644
--- 
a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
+++ 
b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/io/aio/AIOSequentialFileFactory.java
@@ -445,6 +445,9 @@ public final class AIOSequentialFileFactory extends 
AbstractSequentialFileFactor
       @Override
       public void run() {
          while (running.get()) {
+            // To optimize performance, libaioContext.poll should always be 
invoked from the same thread.
+            // This approach leverages kernel-level efficiencies in context 
switching.
+            // Consistent polling from a dedicated thread will yield 
substantial performance gains.
             try {
                libaioContext.poll();
             } catch (Throwable e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to