|
|
ec453d67f2
|
Mid-Large Phase 12 Complete + P0-5 Lock-Free Stage 2
**Phase 12 第1ラウンド完了** ✅
- 0.24M → 2.39M ops/s (8T, **+896%**)
- SEGFAULT → Zero crashes (**100% → 0%**)
- futex: 209 → 10 calls (**-95%**)
**P0-5: Lock-Free Stage 2 (Slot Claiming)**
- Atomic SlotState: `_Atomic SlotState state`
- sp_slot_claim_lockfree(): CAS-based UNUSED→ACTIVE transition
- acquire_slab() Stage 2: Lock-free claiming (mutex only for metadata)
- Result: 2.34M → 2.39M ops/s (+2.5% @ 8T)
**Implementation**:
- core/hakmem_shared_pool.h: Atomic SlotState definition
- core/hakmem_shared_pool.c:
- sp_slot_claim_lockfree() (+40 lines)
- Atomic helpers: sp_slot_find_unused/mark_active/mark_empty
- Stage 2 lock-free integration
- Verified via debug logs: STAGE2_LOCKFREE claiming works
**Reports**:
- MID_LARGE_P0_PHASE_REPORT.md: P0-0 to P0-4 comprehensive summary
- MID_LARGE_FINAL_AB_REPORT.md: Complete Phase 12 A/B comparison (17KB)
- Performance evolution table
- Lock contention analysis - Lessons learned
- File inventory
**Tiny Baseline Measurement** 📊
- System malloc: 82.9M ops/s (256B)
- HAKMEM: 8.88M ops/s (256B)
- **Gap: 9.3x slower** (target for next phase)
**Next**: Tiny allocator optimization (drain interval, front cache, perf profile)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-14 16:51:53 +09:00 |
|