dpvs icon indicating copy to clipboard operation
dpvs copied to clipboard

锁争用导致性能很差

Open dongzerun opened this issue 5 years ago • 2 comments

INET_HOOKrte_rwlock_read_lock 多核并发抢锁。

master 主干代码性能很差,测试机压测 250w pps, 去掉锁后最终压测能到 700w.

感觉这个锁没必要,读锁也影响性能,开 issue 记一下

dongzerun avatar Dec 28 '18 09:12 dongzerun

请问你的测试机器配置是什么?测试环境是什么?谢谢!

ygm521 avatar Dec 28 '18 10:12 ygm521

@ygm521 ubuntu 16.04, 24 cores, 64G memory 4 台机器做 realserver, 10 台机器压测 client ,用的 redis ping 做小包测试

dongzerun avatar Jan 28 '19 10:01 dongzerun