yanglimingcn commented on code in PR #3290:
URL: https://github.com/apache/brpc/pull/3290#discussion_r3217872738


##########
docs/cn/ubring.md:
##########
@@ -0,0 +1,184 @@
+# UBRing: 高性能共享内存 RPC
+
+UBRing 是 brpc 中的高性能 RPC 实现,它利用共享内存进行进程间通信(IPC)。它支持本地共享内存(POSIX 
IPC)和远端共享内存(ubs-mem)两种模式,提供微秒到纳秒级的进程间通信延迟。
+
+## 技术背景
+
+传统的 RPC 框架通常使用网络套接字进行通信,由于内核参与、上下文切换和数据拷贝等原因,会引入显著的开销。UBRing 
通过使用共享内存作为通信介质来解决这个问题,允许进程之间直接内存访问,最小化内核干预。
+
+UBRing 的主要优势:
+
+- **超低延迟**:微秒级 RPC 延迟
+- **高吞吐量**:每秒数百万次 RPC 调用
+- **减少数据拷贝**:进程间直接内存访问
+- **跨平台支持**:支持 Linux 和 macOS
+
+## 支持的共享内存后端
+
+UBRing 支持两种共享内存后端,通过 `ub_shm_type` 参数控制:
+
+### 1. POSIX IPC 共享内存 (ub\_shm\_type = 1)
+
+这是默认模式,使用标准 POSIX 共享内存进行本地 IPC。同一机器上的进程可以通过共享内存区域直接通信。
+
+### 2. UBS-Mem 远端共享内存 (ub\_shm\_type = 2)
+
+此模式使用 ubs-mem(Unified Block Storage Memory),这是来自 openEuler 
的开源远端共享内存框架。它支持机架内节点之间的共享内存通信,类似于 RDMA 但部署要求更简单。

Review Comment:
   Can you list the libraries that need to be used?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to