You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/03/17 09:25:49 UTC
[GitHub] [rocketmq] renxinlin opened a new issue #2734: warmMappedFile相关疑问
renxinlin opened a new issue #2734:
URL: https://github.com/apache/rocketmq/issues/2734
AllocateMappedFileService.mmapOperation 在创建映射文件进行内存预热的时候
byteBuffer.put(i, (byte) 0);
为什么put的值是0,可不可以是1,或者其他值;
一直不太理解,求赐教
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] renxinlin commented on issue #2734: Questions about warmmappedfile
Posted by GitBox <gi...@apache.org>.
renxinlin commented on issue #2734:
URL: https://github.com/apache/rocketmq/issues/2734#issuecomment-801631563
> 我觉得可以,把内存占住就可以了
我个人的理解是不管0还是1或者其他值都会完成物理内存页的分配,只是0并没有改变原先bytebuffer的内容,同时达到分配物理内存的效果;希望有人帮助解惑
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] RongtongJin closed issue #2734: Questions about warmmappedfile
Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #2734:
URL: https://github.com/apache/rocketmq/issues/2734
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] RongtongJin commented on issue #2734: Questions about warmmappedfile
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #2734:
URL: https://github.com/apache/rocketmq/issues/2734#issuecomment-801116166
我觉得可以,把内存占住就可以了
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org