Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appendMessage poor performance 写入MappedByteBuffer 性能并不友好 #151

Open
Cczzzz opened this issue May 24, 2022 · 1 comment
Open

Comments

@Cczzzz
Copy link
Contributor

Cczzzz commented May 24, 2022

场景是 12k 写入 12 k 消费
16 c 32 g,ssd,rocketmq 版本 4.9.1

Scenario is 12k writes 12k consumes
16c 32g, ssd, rocketmq version 4.9.1

image
如图片所示,我添加了一些指标采集
As shown in the figure, I added some indicators
image
putBufferRt 方法对应指标 buffer 单位是微秒。
putBufferRt is buffer in Metrics,is μs.
有时候会大于2ms 呢,
Sometimes greater than 2ms.
如果用Arthas 去开的话
with Arthas
这个语句
watch *.DefaultMmapFile appendMessage '{params, returnObj}' '#cost>1'
image

大于2ms 的也挺多的
I don't know what's causing it, maybe it's a page fault in memory?
会是内存缺页引起的吗
O7fxn7KzWJ

@Cczzzz Cczzzz changed the title appendMessage poor performance appendMessage poor performance 写入MappedByteBuffer 性能并不友好 May 24, 2022
@Cczzzz
Copy link
Contributor Author

Cczzzz commented May 30, 2022

我将rocketmq 的文件预热代码拷贝过来后 ,写入mmp 不在有抖动的情况,上面的buffer 指标 p99.9 下降到 100微妙以下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant