folly icon indicating copy to clipboard operation
folly copied to clipboard

How to safely disable CacheLocality technique if cpu files are not as expected(ppc64le)?

Open zhitaoli-6 opened this issue 2 years ago • 0 comments

Is it safe to disable CacheLocality technique by removing the "unable to load cache sharing info" exception at folly/concurrency/CacheLocality.cpp:L164 ?

On our ppc64le machine, the cpu files maybe not as expected on other architectures like x86_64:

image

The impl expects there is file named "shared_cpu_list" in "/sys/devices/system/cpu/cpu0/cache/index0/" image

If no file named "shared_cpu_list" is found, the impl will throw exception: image

So is it safe to disable CacheLocality technique by removing the "unable to load cache sharing info" exception at folly/concurrency/CacheLocality.cpp:L164 ?

zhitaoli-6 avatar Feb 02 '23 12:02 zhitaoli-6