[ 
https://issues.apache.org/jira/browse/ARTEMIS-2849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17163909#comment-17163909
 ] 

ASF subversion and git services commented on ARTEMIS-2849:
----------------------------------------------------------

Commit 7902dd175745f0bd15b6ea419b201b215e108ceb in activemq-artemis's branch 
refs/heads/master from franz1981
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=7902dd1 ]

ARTEMIS-2849 Optimize zeroing of buffers while writing the ASYNCIO journal


> Eliminate zeroing of buffers while writing the ASYNCIO journal
> --------------------------------------------------------------
>
>                 Key: ARTEMIS-2849
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2849
>             Project: ActiveMQ Artemis
>          Issue Type: Test
>          Components: Broker
>            Reporter: Francesco Nigro
>            Priority: Major
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> By default ASYNCIO using TimedBuffer are zeroing the ByteBuffers used to 
> perform the write on the journal: under load TimedBuffer can be big enough 
> that zeroing would cost the same as copying the actual content into it, hence 
> saving the zeroing is quite beneficial to save CPU time and increase IOPS.
> NIO and MAPPED doesn't need it because they already use directly the 
> TimedBuffer's accumulation buffer to perform writes (that's never zeroed, 
> because it already contains the content that they expect to write into the 
> journal), but changing ASYNCIO need to adjust the same calls on NIO and 
> MAPPED for completeness.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to