welly87 / aeron-native

experiment on porting aeron on graviton3
Other
1 stars 0 forks source link

replacing x86 optimization for graviton #1

Open welly87 opened 2 years ago

welly87 commented 2 years ago

based on graviton optimization docs

i try to find the spesific code with grep -r __x86_64__ *. seems that the team isolate that into their own flag. which is great one for abstraction

aeron-client/src/main/c/util/aeron_platform.h:    #if defined(__x86_64__)
aeron-client/src/main/cpp/util/Platform.h:    #if defined(__x86_64__)
aeron-client/src/main/cpp_wrapper/util/Platform.h:    #if defined(__x86_64__)

so basically we just need to find AERON_CPU_X64 and AERON_CPU_ARM

check the performance with perf

sudo dnf install perf