Guide agents through cache-aware programming: diagnosing cache misses with perf, data layout transformations (AoS→SoA), false sharing detection and fixes, prefetching, and cache-friendly algorithm design.
False sharing occurs when two threads write to different variables that share a cache line, causing constant cache-line invalidations.
For perf cache event reference and false sharing detection patterns, see references/cache-counters.md.
C/C++ 및 Rust를 위한 CPU 캐시 최적화 기술. 캐시 누락 진단, 캐시 효율성을 위한 데이터 레이아웃 개선, 성능 통계 캐시 카운터 사용, 잘못된 공유 이해, 프리패치 또는 AoS 대 SoA 데이터 레이아웃 구조화 시 사용합니다. 캐시 누락, 캐시 라인, 잘못된 공유, 성능 캐시 카운터, 데이터 레이아웃 최적화, 프리페치, AoS 대 SoA 또는 L1/L2/L3 캐시 성능에 대한 쿼리에 대해 활성화됩니다. 출처: mohitmishra786/low-level-dev-skills.