feat: Add ACE allocation failure tracing and debug hooks
This commit introduces a comprehensive tracing mechanism for allocation failures within the Adaptive Cache Engine (ACE) component. This feature allows for precise identification of the root cause for Out-Of-Memory (OOM) issues related to ACE allocations. Key changes include: - **ACE Tracing Implementation**: - Added environment variable to enable/disable detailed logging of allocation failures. - Instrumented , , and to distinguish between "Threshold" (size class mismatch), "Exhaustion" (pool depletion), and "MapFail" (OS memory allocation failure). - **Build System Fixes**: - Corrected to ensure is properly linked into , resolving an error. - **LD_PRELOAD Wrapper Adjustments**: - Investigated and understood the wrapper's behavior under , particularly its interaction with and checks. - Enabled debugging flags for environment to prevent unintended fallbacks to 's for non-tiny allocations, allowing comprehensive testing of the allocator. - **Debugging & Verification**: - Introduced temporary verbose logging to pinpoint execution flow issues within interception and routing. These temporary logs have been removed. - Created to facilitate testing of the tracing features. This feature will significantly aid in diagnosing and resolving allocation-related OOM issues in by providing clear insights into the failure pathways.
This commit is contained in:
45
hakmem.d
45
hakmem.d
@ -1,13 +1,13 @@
|
||||
hakmem.o: core/hakmem.c core/hakmem.h core/hakmem_build_flags.h \
|
||||
core/hakmem_config.h core/hakmem_features.h core/hakmem_internal.h \
|
||||
core/hakmem_sys.h core/hakmem_whale.h core/hakmem_bigcache.h \
|
||||
core/hakmem_pool.h core/hakmem_l25_pool.h core/hakmem_policy.h \
|
||||
core/hakmem_learner.h core/hakmem_size_hist.h core/hakmem_ace.h \
|
||||
core/hakmem_site_rules.h core/hakmem_tiny.h core/hakmem_trace.h \
|
||||
core/hakmem_tiny_mini_mag.h core/hakmem_tiny_superslab.h \
|
||||
core/superslab/superslab_types.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/superslab_inline.h core/superslab/superslab_types.h \
|
||||
core/superslab/../tiny_box_geometry.h \
|
||||
core/hakmem_sys.h core/hakmem_whale.h core/box/ptr_type_box.h \
|
||||
core/hakmem_bigcache.h core/hakmem_pool.h core/hakmem_l25_pool.h \
|
||||
core/hakmem_policy.h core/hakmem_learner.h core/hakmem_size_hist.h \
|
||||
core/hakmem_ace.h core/hakmem_site_rules.h core/hakmem_tiny.h \
|
||||
core/hakmem_trace.h core/hakmem_tiny_mini_mag.h \
|
||||
core/hakmem_tiny_superslab.h core/superslab/superslab_types.h \
|
||||
core/hakmem_tiny_superslab_constants.h core/superslab/superslab_inline.h \
|
||||
core/superslab/superslab_types.h core/superslab/../tiny_box_geometry.h \
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/../hakmem_tiny_config.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/hakmem_tiny_superslab_constants.h \
|
||||
@ -24,11 +24,12 @@ hakmem.o: core/hakmem.c core/hakmem.h core/hakmem_build_flags.h \
|
||||
core/box/hak_core_init.inc.h core/hakmem_phase7_config.h \
|
||||
core/box/ss_hot_prewarm_box.h core/box/hak_alloc_api.inc.h \
|
||||
core/box/../hakmem_tiny.h core/box/../hakmem_smallmid.h \
|
||||
core/box/mid_large_config_box.h core/box/../hakmem_config.h \
|
||||
core/box/../hakmem_features.h core/box/hak_free_api.inc.h \
|
||||
core/hakmem_tiny_superslab.h core/box/../tiny_free_fast_v2.inc.h \
|
||||
core/box/../tiny_region_id.h core/box/../hakmem_build_flags.h \
|
||||
core/box/../hakmem_tiny_config.h core/box/../box/tls_sll_box.h \
|
||||
core/box/../pool_tls.h core/box/mid_large_config_box.h \
|
||||
core/box/../hakmem_config.h core/box/../hakmem_features.h \
|
||||
core/box/hak_free_api.inc.h core/hakmem_tiny_superslab.h \
|
||||
core/box/../tiny_free_fast_v2.inc.h core/box/../tiny_region_id.h \
|
||||
core/box/../hakmem_build_flags.h core/box/../hakmem_tiny_config.h \
|
||||
core/box/../box/tls_sll_box.h core/box/../box/../hakmem_internal.h \
|
||||
core/box/../box/../hakmem_tiny_config.h \
|
||||
core/box/../box/../hakmem_build_flags.h \
|
||||
core/box/../box/../hakmem_debug_master.h \
|
||||
@ -45,12 +46,15 @@ hakmem.o: core/hakmem.c core/hakmem.h core/hakmem_build_flags.h \
|
||||
core/box/../box/../superslab/superslab_types.h \
|
||||
core/box/../box/ss_hot_cold_box.h \
|
||||
core/box/../box/../superslab/superslab_types.h \
|
||||
core/box/../box/free_local_box.h core/box/../hakmem_tiny_integrity.h \
|
||||
core/box/../box/free_local_box.h core/box/../box/ptr_type_box.h \
|
||||
core/box/../box/free_publish_box.h core/hakmem_tiny.h \
|
||||
core/tiny_region_id.h core/box/../hakmem_tiny_integrity.h \
|
||||
core/box/../superslab/superslab_inline.h \
|
||||
core/box/../box/ss_slab_meta_box.h \
|
||||
core/box/../box/slab_freelist_atomic.h core/box/../box/free_remote_box.h \
|
||||
core/box/front_gate_v2.h core/box/external_guard_box.h \
|
||||
core/box/ss_slab_meta_box.h core/box/hak_wrappers.inc.h \
|
||||
core/hakmem_tiny_integrity.h core/box/front_gate_v2.h \
|
||||
core/box/external_guard_box.h core/box/ss_slab_meta_box.h \
|
||||
core/box/fg_tiny_gate_box.h core/box/hak_wrappers.inc.h \
|
||||
core/box/front_gate_classifier.h core/box/../front/malloc_tiny_fast.h \
|
||||
core/box/../front/../hakmem_build_flags.h \
|
||||
core/box/../front/../hakmem_tiny_config.h \
|
||||
@ -74,6 +78,7 @@ core/hakmem_features.h:
|
||||
core/hakmem_internal.h:
|
||||
core/hakmem_sys.h:
|
||||
core/hakmem_whale.h:
|
||||
core/box/ptr_type_box.h:
|
||||
core/hakmem_bigcache.h:
|
||||
core/hakmem_pool.h:
|
||||
core/hakmem_l25_pool.h:
|
||||
@ -128,6 +133,7 @@ core/box/ss_hot_prewarm_box.h:
|
||||
core/box/hak_alloc_api.inc.h:
|
||||
core/box/../hakmem_tiny.h:
|
||||
core/box/../hakmem_smallmid.h:
|
||||
core/box/../pool_tls.h:
|
||||
core/box/mid_large_config_box.h:
|
||||
core/box/../hakmem_config.h:
|
||||
core/box/../hakmem_features.h:
|
||||
@ -138,6 +144,7 @@ core/box/../tiny_region_id.h:
|
||||
core/box/../hakmem_build_flags.h:
|
||||
core/box/../hakmem_tiny_config.h:
|
||||
core/box/../box/tls_sll_box.h:
|
||||
core/box/../box/../hakmem_internal.h:
|
||||
core/box/../box/../hakmem_tiny_config.h:
|
||||
core/box/../box/../hakmem_build_flags.h:
|
||||
core/box/../box/../hakmem_debug_master.h:
|
||||
@ -159,14 +166,20 @@ core/box/../box/../superslab/superslab_types.h:
|
||||
core/box/../box/ss_hot_cold_box.h:
|
||||
core/box/../box/../superslab/superslab_types.h:
|
||||
core/box/../box/free_local_box.h:
|
||||
core/box/../box/ptr_type_box.h:
|
||||
core/box/../box/free_publish_box.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/tiny_region_id.h:
|
||||
core/box/../hakmem_tiny_integrity.h:
|
||||
core/box/../superslab/superslab_inline.h:
|
||||
core/box/../box/ss_slab_meta_box.h:
|
||||
core/box/../box/slab_freelist_atomic.h:
|
||||
core/box/../box/free_remote_box.h:
|
||||
core/hakmem_tiny_integrity.h:
|
||||
core/box/front_gate_v2.h:
|
||||
core/box/external_guard_box.h:
|
||||
core/box/ss_slab_meta_box.h:
|
||||
core/box/fg_tiny_gate_box.h:
|
||||
core/box/hak_wrappers.inc.h:
|
||||
core/box/front_gate_classifier.h:
|
||||
core/box/../front/malloc_tiny_fast.h:
|
||||
|
||||
Reference in New Issue
Block a user