Closed lindzh closed 6 years ago
Performance improve data, old version is using pagecache for Index read and write while new version is using randomAccessFile read and write.
The randomAccessFile also will go through the pagecache.
And all the store file should use the MappedFile.
@zhouxinyu Yeah,I am wandering if there is a good improve for this change. Finally I change it with direct io read and write for IndexFile, it gained 14935568 at one minute.
I will close the pr, if you happened to the same question, please let me know.
The issue tracker is ONLY used for bug report and feature request. Keep in mind, please check whether there is an existing same report before your raise a new one.
Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration and other improvements.
Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:
FEATURE REQUEST
Please describe the feature you are requesting. https://issues.apache.org/jira/projects/ROCKETMQ/issues/ROCKETMQ-267?filter=allopenissues When using pagecache for commit log and index service,There is more latency in send request,replace it with randomAccessFile read and write,there is a good improve for send.
Provide any additional detail on your proposed use case for this feature.
Performance improve data, old version is using map pagecache for Index read and write while new version is using randomAccessFile read and write. And [with direct io write] aims to use direct io.
should-have