PikiwiDB 网络层优化 #223
AlexStocks
started this conversation in
General
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Redis 多线程模型 https://mp.weixin.qq.com/s/timfJtel1xf5IlvGEpsu2g |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
from https://tech.meituan.com/2024/03/15/kv-squirrel-cellar.html
“如果一个工作线程需要加锁的话,它会先 try lock。如果加锁成功就继续执行了,但如果加锁失败的话,这个工作线程也不会阻塞等锁。它会先去注册一个管道的通知消息,然后就继续处理网络的收发包,还有非临界区的请求了。等到锁被释放的时候,这个工作线程会通过 epoll 获得管道里面的锁释放通知,然后去拿到这把锁。这个时候它就可以去处理临界区的请求操作了。” 感觉 PikiwiDB 的网络层可以尝试这么优化下
Beta Was this translation helpful? Give feedback.
All reactions