Skip to content

Error while running bench.sh for d_grpc on linux arm64  #303

@odidev

Description

@odidev

@LesnyRumcajs, I was trying to run d_grpc_bench for arm64 locally but getting errors while build.sh and bench.sh.

I did the below changes for running build.sh

I found that the image dlang2/ldc-ubuntu:1.26.0 present in the dockerfile is not available for arm64. So, I build the image and updated it in the dockerfile but while building the image from dlang-docker, I have used ldc compiler for dlang because by default it uses dmd and dmd doesn’t support arm64 architecture. Please have a look https://dlang.org/download.html

when I ran build.sh, I was getting error related to dub command because the binary is not present for arm64. I found the binary on ubuntu.pkgs.org and updated it in the dockerfile.

After that I ran build.sh again and getting Error: The LLVMgold.so plugin (needed for LTO) was not found. You can specify its path with -flto-binary=<file>. So, I modified the dub.json file and added the -flto-binary path that is "dflags-ldc": ["-flto=/usr/lib/llvm-10/lib/LLVMgold.so"]

Updated Dockerfile: dockerfile.txt

Now the build.sh for d_grpc_bench is running successfully but bench.sh is failing with the below errors.

ubuntu@ip-172-31-19-230:~grpc_bench$ sudo ./bench.sh d_grpc_bench 

==> Running benchmark for d_grpc_bench... 

Waiting for server to come up... ready. 

Warming up the service for 5s... done. 

Benchmarking now... 

                done. 

                Results: 

                    Requests/sec:       5586.37 

Error response from daemon: No such container: d_grpc_bench 

----- 

Benchmark finished. Detailed results are located in: results/221711T054811 

/analyze/results_analyze.rb:25:in `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError) 

        from /analyze/results_analyze.rb:15:in `each' 

        from /analyze/results_analyze.rb:15:in `<main>' 

Failed miserably analysing d_grpc. 

Analysis fiascoed. 

total 12K 

drwxr-xr-x  2 root root 4.0K Nov 17 05:48 . 

drwxr-xr-x 33 root root 4.0K Nov 17 05:48 .. 

-rw-r--r--  1 root root  623 Nov 17 05:48 d_grpc_bench.report 

-rw-r--r--  1 root root    0 Nov 17 05:48 d_grpc_bench.stats 

results/221711T054811/d_grpc_bench.report 

Summary: 

  Count:        112868 

  Total:        20.20 s 

  Slowest:      0 ns 

  Fastest:      0 ns 

  Average:      10.81 ms 

  Requests/sec: 5586.37 

Response time histogram: 

Latency distribution: 

Status code distribution: 

  [Unavailable]   112104 responses 

  [Canceled]      764 responses 

Error distribution: 

  [112104]   rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:50051: connect: connection refused" 

  [764]      rpc error: code = Canceled desc = grpc: the client connection is closing                                                  

 results/221711T054811/d_grpc_bench.stats

Could you please share your feedback regarding the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions