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

   **Describe the bug (描述bug)**
   在 `CentOS7` 和 `Ubuntu20.04` 系统分别测试 `example/redis_c++` ,发现在 CentOS7 的性能远低于 
Ubuntu20.04 。
   
   **To Reproduce (复现方法)**
   完成编译后启动server `./redis_server 
--event_dispatcher_num=4`,client机器使用工具memtier_benchmark。
   #### Client
   AMI: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20231025
   Instance Type: c5a.4xlarge
   
   #### CentOS7 
   AMI: CentOS-7-2111-20220825_1.x86_64-d9a3032a-921c-4c6d-b150-bde168105e42
   Instance Type: c7a.8xlarge
   Benchmark result:
   ```shell
   $ memtier_benchmark -t 25 -c 40 -s 172.31.46.224 -p 6379 
--distinct-client-seed --key-prefix="kv_" -d 32 --data-size-pattern=S 
--key-pattern=G:G --key-stddev=1000000 --key-minimum=1 --key-maximum=500000000 
--ratio=0:1 --print-percentiles="95,99,99.9" --test-time=300
   Writing results to stdout
   [RUN #1] Preparing benchmark client...
   [RUN #1] Launching threads now...
   [RUN #1] 13%,  39 secs] 25 threads:    21880433 ops,  523954 (avg:  547754) 
ops/sec, 18.49MB/sec (avg: 19.33MB/sec),  1.91 (avg:  1.82) msec latency
   ```
   
   
   #### Ubuntu20.04
   AMI: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20231025
   Instance Type: c7a.8xlarge
   Benchmark result:
   ```shell
   $ memtier_benchmark -t 25 -c 40 -s 172.31.40.160 -p 6379 
--distinct-client-seed --key-prefix="kv_" -d 32 --data-size-pattern=S 
--key-pattern=G:G --key-stddev=1000000 --key-minimum=1 --key-maximum=500000000 
--ratio=0:1 --print-percentiles="95,99,99.9" --test-time=300
   Writing results to stdout
   [RUN #1] Preparing benchmark client...
   [RUN #1] Launching threads now...
   [RUN #1] 34%, 101 secs] 25 threads:   100318388 ops,  994686 (avg:  992867) 
ops/sec, 35.10MB/sec (avg: 35.03MB/sec),  1.00 (avg:  1.01) msec latency
   ```
   
   
   **Expected behavior (期望行为)**
   Benchmark 结果应该接近
   
   **Versions (各种版本)**
   OS: CentOS7
   Compiler: gcc8
   brpc: 
https://github.com/apache/brpc/commit/85b664bbd0a440913529dd8e71fdeff4020892b6
   protobuf: 3.21.12
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to