lizhimins commented on issue #8017: URL: https://github.com/apache/rocketmq/issues/8017#issuecomment-2065830555
对于 SSD 转 HDD 场景,当前设计中 PosixFileSegment 主要是为了测试场景,可以改进。如果用 MappedByteBuffer,把数据从 CommitLog 复制到 FileSegment,也会有 pagecache 浪费内存的问题。至于如何实现,可以搜索 Java directIO lib For copy data from SSD to HDD scenario, the PosixFileSegment in the current design is mainly for testing scenarios and can be improved. If you use MappedByteBuffer to copy data from CommitLog to FileSegment, there will also be a problem of pagecache wasting memory. We can use Java directIO lib to slove this problem -- 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. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org