Replies: 1 comment
-
Hi, disabling OS_ENABLE_HW_BOUND_CHECK will disable the hardware boundary check and may impact the performance. But os_thread_get_stack_boundary is also called in aot_call_function when OS_ENABLE_HW_BOUND_CHECK is disabled: wasm-micro-runtime/core/iwasm/aot/aot_runtime.c Lines 2245 to 2248 in e8c2952 Do you think is it better to make the |
Beta Was this translation helpful? Give feedback.
-
One of our engineers is observing that the first call into WAMR takes significantly longer than subsequent calls when OS_ENABLE_HW_BOUND_CHECK is set.
invoke_native_with_hw_bound_check
eventually calls intoos_thread_get_stack_boundary
, where we havepthread_getattr_np
may be a culprit because (at least in glibc) it does a read of /proc/self/maps, scanf, etc. It has been identified as a potential culprit of slowdowns in other projects, e.g. golang/go#68587.The environment is Android ARM. Would it be safe to disable OS_ENABLE_HW_BOUND_CHECK?
Beta Was this translation helpful? Give feedback.
All reactions