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 2020/12/01 09:16:26 UTC

[GitHub] [rocketmq] BenXiangYangGuang opened a new issue #2466: MappedFile 中 MappedByteBuffer 和 TransientStorePool 中的ByteBuffer的区别

BenXiangYangGuang opened a new issue #2466:
URL: https://github.com/apache/rocketmq/issues/2466


   您好,正在学习 RocketMQ 源码,有几个问题请教一下:
   MappedByteBuffer 和 ByteBuffer 都是堆外内存(直接内存);
   ![image](https://user-images.githubusercontent.com/20946227/100720068-6d160e00-33f8-11eb-891c-a83e3b02755b.png)
   
   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] BenXiangYangGuang commented on issue #2466: MappedFile 中 MappedByteBuffer 和 TransientStorePool 中的ByteBuffer的区别

Posted by GitBox <gi...@apache.org>.
BenXiangYangGuang commented on issue #2466:
URL: https://github.com/apache/rocketmq/issues/2466#issuecomment-741559049


   ok,已订阅,谢谢


----------------------------------------------------------------
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] duhenglucky closed issue #2466: MappedFile 中 MappedByteBuffer 和 TransientStorePool 中的ByteBuffer的区别

Posted by GitBox <gi...@apache.org>.
duhenglucky closed issue #2466:
URL: https://github.com/apache/rocketmq/issues/2466


   


----------------------------------------------------------------
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] duhenglucky commented on issue #2466: MappedFile 中 MappedByteBuffer 和 TransientStorePool 中的ByteBuffer的区别

Posted by GitBox <gi...@apache.org>.
duhenglucky commented on issue #2466:
URL: https://github.com/apache/rocketmq/issues/2466#issuecomment-738483805


   @BenXiangYangGuang TransientStorePool 相当于在内存层面做了读写分离,写走内存吃,读走pagecache,同时最大程度消除了page cache的锁竞争,降低了毛刺,咨询类的这种问题建议走[邮件列表](https://rocketmq.apache.org/about/contact/):),这样能够沉淀下来哈。


----------------------------------------------------------------
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