深入理解 RocketMQ 零拷贝
特别说明
当前文章内容迁移中,如有问题,请提交 issues 谢谢 ~~
参考文章
正常的数据读写,需要调用 Read 和 Write 函数。
零拷贝的关键技术
- mmap 结合 write
- sendFile
RocketMQ 采用的是 sendFile 结合 write
FileChannel.map(MapMode.READ_WRITE, 0, fileSize);
当前文章内容迁移中,如有问题,请提交 issues 谢谢 ~~
正常的数据读写,需要调用 Read 和 Write 函数。
零拷贝的关键技术
RocketMQ 采用的是 sendFile 结合 write
FileChannel.map(MapMode.READ_WRITE, 0, fileSize);