[
https://issues.apache.org/jira/browse/QPID-7383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414241#comment-15414241
]
Kim van der Riet commented on QPID-7383:
----------------------------------------
The existing function for overwriting the file contents with zeros was using
std::ostream, and was rather slow and inefficient.
The function was replaced with a ::fwrite() solution, and seems to be much
faster and more efficient. As this function is also used when new journal files
are created, there is also a noticeable improvement in tests where the EFP is
empty and the journal files are created for the first time.
> [linearstore] Overwrite-before-return causes latencies for clients
> ------------------------------------------------------------------
>
> Key: QPID-7383
> URL: https://issues.apache.org/jira/browse/QPID-7383
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Reporter: Kim van der Riet
> Assignee: Kim van der Riet
>
> Using the linearstore overwrite-before-return option can cause excessive
> client latencies owing to the time taken in the store to overwrite the entire
> journal file with zeros in an inefficient manner. The store by design does
> not have its own worker threads, and relies on the thread that is processing
> a message to perform its work.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]