kitex icon indicating copy to clipboard operation
kitex copied to clipboard

Hope kitex is compatible with arm architecture

Open CoderPoet opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. The consistent hash algorithm of Kitex's load balancing module uses the assembly implementation of the hash function, which is incompatible with the arm architecture instruction set.

image

Describe the solution you'd like Maybe we can use a hash function that is compatible with the arm instruction set.

Additional context How high is the overhead brought by replacing the hash function?

CoderPoet avatar May 10 '22 02:05 CoderPoet

Thanks for the feedback, v1.9.0 uses xxhash3 involve this problem, github.com/bytedance/gopkg/util/xxhash3 has supported arm now ,go get github.com/bytedance/gopkg@develop can fix ix. Kitex will upgrade it in the next version

YangruiEmma avatar May 10 '22 03:05 YangruiEmma

Arm32 compilation is not supported system: apple M1 arm64 code path : cloudwego/kitex-examples/basic/client command: CGO_ENABLED=0 GOOS=linux GOARCH=arm go build image

songoow avatar Mar 17 '23 07:03 songoow

GOARCH=arm64 试试呢

ppzqh avatar Mar 17 '23 08:03 ppzqh

arm64 是可以的,https://github.com/dapr/dapr/actions/runs/4444626716/jobs/7803013778?pr=6093 发现这个因为跑这个测试没过 :joy:..

songoow avatar Mar 17 '23 08:03 songoow