Folly Code Review
folly::CPUThreadPoolExecutor — CPU-bound 작업의 표준 thread pool
CPUThreadPoolExecutor는 CPU 집약 작업을 위한 thread pool. priority queue, blocking queue, thread factory를 조합한다.
· 4분 읽기
cpp folly
6개의 포스트
CPUThreadPoolExecutor는 CPU 집약 작업을 위한 thread pool. priority queue, blocking queue, thread factory를 조합한다.
DMA setup overhead. CPU memcpy 최적화. Break-even size. 실측 데이터.
Out-of-order execution. ROB·issue queue·rename. Spectre 측면. Cortex-A 사례.
BTFNT, 2-bit saturating counter, BTB·BHT. Mispredict 10-20 cycle. PMU BR_MIS_PRED.
Stall은 pipeline bubble을 만듭니다. RAW·WAR·WAW hazard, forwarding, PMU STALL counter를 살펴봅니다.
Fetch·Decode·Execute·Memory·Writeback의 5-stage 파이프라인을 봅니다. Cortex-M3/M4는 3-stage, Cortex-A는 8~15-stage입니다.