binarycopycode opened a new issue, #2459:
URL: https://github.com/apache/brpc/issues/2459

    **Describe the bug (描述bug)**
   
   在运行server和client之后有时测试会失败,不知这是否是正常的
   
   
   **To Reproduce (复现方法)**
   
   按照[rdma文档](https://github.com/apache/brpc/blob/master/docs/cn/rdma.md)配置
   `./server 2333 -rdma_memory_pool_initial_size_mb=512 `
   `./client 172.31.50.174:2333 -rdma_memory_pool_initial_size_mb=512`
   我本机按默认内存1024MB会分配内存失败
   
   **Versions (各种版本)**
   RoCE ubuntu 虚拟机
   `lfw@lfw-vm:~$ rdma link show
   link rxe_0/1 state ACTIVE physical_state LINK_UP netdev ens33 `
   
   **Additional context/screenshots (更多上下文/截图)**
   
   可以看到client的运行情况有时出现Fail to write into Socket,有时出现127.0.0.1:43942(no auth) 
requests for profiling
   
   lfw@lfw-vm:~/dev_libs/brpc/example/rdma_performance/build$ ./client 
172.31.50.174:2333 -rdma_memory_pool_initial_size_mb=512
   I1130 14:30:14.397691  7844 
/home/lfw/dev_libs/brpc/src/brpc/rdma/rdma_helper.cpp:483] RDMA device: rxe_0
   I1130 14:30:14.397779  7844 
/home/lfw/dev_libs/brpc/src/brpc/rdma/rdma_helper.cpp:485] RDMA LID: 0
   I1130 14:30:14.398254  7844 
/home/lfw/dev_libs/brpc/src/brpc/rdma/rdma_helper.cpp:490] RDMA GID Index: 2
   I1130 14:30:14.399389  7844 
/home/lfw/dev_libs/brpc/src/brpc/rdma/block_pool.cpp:145] Start extend rdma 
memory 512MB
   I1130 14:30:14.899498  7844 
/home/lfw/dev_libs/brpc/src/brpc/server.cpp:1158] 
Server[DummyServerOf(./client)] is serving on port=8001.
   I1130 14:30:14.899661  7844 
/home/lfw/dev_libs/brpc/src/brpc/server.cpp:1161] Check out http://lfw-vm:8001 
in web browser.
   [Threads: 1, Depth: 1, Attachment: 1B, RDMA: yes, Echo: no]
   Avg-Latency: 94, 90th-Latency: 151, 99th-Latency: 436, 99.9th-Latency: 7205, 
Throughput: 0.00920648MB/s, QPS: 9k, Server CPU-utilization: 52%, Client 
CPU-utilization: 54%
   [Threads: 2, Depth: 1, Attachment: 1B, RDMA: yes, Echo: no]
   Avg-Latency: 170, 90th-Latency: 274, 99th-Latency: 1295, 99.9th-Latency: 
8885, Throughput: 0.0117301MB/s, QPS: 12k, Server CPU-utilization: 63%, Client 
CPU-utilization: 66%
   [Threads: 4, Depth: 1, Attachment: 1B, RDMA: yes, Echo: no]
   W1130 14:31:14.673439  7853 
/home/lfw/dev_libs/brpc/src/brpc/policy/http_rpc_protocol.cpp:967] Fail to 
write into Socket{id=204 fd=1035 addr=127.0.0.1:54334:8001} (0x7f707c1a0640): 
Got EOF
   Avg-Latency: 185, 90th-Latency: 287, 99th-Latency: 856, 99.9th-Latency: 
12160, Throughput: 0.0210091MB/s, QPS: 22k, Server CPU-utilization: 80%, Client 
CPU-utilization: 83%
   [Threads: 8, Depth: 1, Attachment: 1B, RDMA: yes, Echo: no]
   Avg-Latency: 232, 90th-Latency: 380, 99th-Latency: 1351, 99.9th-Latency: 
12113, Throughput: 0.0327759MB/s, QPS: 34k, Server CPU-utilization: 81%, Client 
CPU-utilization: 85%
   [Threads: 16, Depth: 1, Attachment: 1B, RDMA: yes, Echo: no]
   I1130 14:31:45.528819  7849 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:664] 
127.0.0.1:43942(no auth) requests for profiling cpu for 10 seconds
   Avg-Latency: 294, 90th-Latency: 481, 99th-Latency: 1480, 99.9th-Latency: 
12775, Throughput: 0.054297MB/s, QPS: 56k, Server CPU-utilization: 91%, Client 
CPU-utilization: 98%
   [Threads: 1, Depth: 1, Attachment: 4B, RDMA: yes, Echo: no]
   I1130 14:31:57.393738  7853 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:666] 
127.0.0.1:43942(no auth) requests for profiling heap
   I1130 14:31:59.362359  7849 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:666] 
127.0.0.1:43942(no auth) requests for profiling growth
   I1130 14:32:00.629607  7849 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:664] 
127.0.0.1:43942(no auth) requests for profiling contention for 10 seconds
   W1130 14:32:10.643670  7849 
/home/lfw/dev_libs/brpc/src/brpc/policy/http_rpc_protocol.cpp:967] Fail to 
write into Socket{id=306 fd=1035 addr=127.0.0.1:43942:8001} (0x7f706453d270): 
Got EOF
   Avg-Latency: 105, 90th-Latency: 162, 99th-Latency: 524, 99.9th-Latency: 
11196, Throughput: 0.033814MB/s, QPS: 8k, Server CPU-utilization: 52%, Client 
CPU-utilization: 55%
   [Threads: 2, Depth: 1, Attachment: 4B, RDMA: yes, Echo: no]
   Avg-Latency: 155, 90th-Latency: 205, 99th-Latency: 730, 99.9th-Latency: 
13380, Throughput: 0.0507197MB/s, QPS: 13k, Server CPU-utilization: 73%, Client 
CPU-utilization: 75%
   [Threads: 4, Depth: 1, Attachment: 4B, RDMA: yes, Echo: no]
   Avg-Latency: 150, 90th-Latency: 245, 99th-Latency: 664, 99.9th-Latency: 
9576, Throughput: 0.0982212MB/s, QPS: 25k, Server CPU-utilization: 81%, Client 
CPU-utilization: 86%
   [Threads: 8, Depth: 1, Attachment: 4B, RDMA: yes, Echo: no]
   I1130 14:33:00.590817  7849 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:664] 
127.0.0.1:42982(no auth) requests for profiling contention for 10 seconds
   I1130 14:33:01.721333  7854 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:666] 
127.0.0.1:59130(no auth) requests for profiling growth
   I1130 14:33:02.307785  7847 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:666] 
127.0.0.1:59130(no auth) requests for profiling heap
   I1130 14:33:04.926424  7847 
/home/lfw/dev_libs/brpc/src/brpc/builtin/hotspots_service.cpp:664] 
127.0.0.1:59130(no auth) requests for profiling cpu for 10 seconds
   W1130 14:33:10.596240  7847 
/home/lfw/dev_libs/brpc/src/brpc/policy/http_rpc_protocol.cpp:967] Fail to 
write into Socket{id=8589934796 fd=1036 addr=127.0.0.1:42982:8001} 
(0x7f707c1a0640): Got EOF
   Avg-Latency: 219, 90th-Latency: 373, 99th-Latency: 1198, 99.9th-Latency: 
10803, Throughput: 0.144094MB/s, QPS: 37k, Server CPU-utilization: 81%, Client 
CPU-utilization: 86%
   [Threads: 16, Depth: 1, Attachment: 4B, RDMA: yes, Echo: no]
   Avg-Latency: 272, 90th-Latency: 452, 99th-Latency: 1311, 99.9th-Latency: 
12194, Throughput: 0.21416MB/s, QPS: 56k, Server CPU-utilization: 89%, Client 
CPU-utilization: 93%
   
   


-- 
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