Files
hakmem/docs/status/archive/PHASE_6.17_PLAN_2025_10_23.md
Moe Charm (CI) 52386401b3 Debug Counters Implementation - Clean History
Major Features:
- Debug counter infrastructure for Refill Stage tracking
- Free Pipeline counters (ss_local, ss_remote, tls_sll)
- Diagnostic counters for early return analysis
- Unified larson.sh benchmark runner with profiles
- Phase 6-3 regression analysis documentation

Bug Fixes:
- Fix SuperSlab disabled by default (HAKMEM_TINY_USE_SUPERSLAB)
- Fix profile variable naming consistency
- Add .gitignore patterns for large files

Performance:
- Phase 6-3: 4.79 M ops/s (has OOM risk)
- With SuperSlab: 3.13 M ops/s (+19% improvement)

This is a clean repository without large log files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 12:31:14 +09:00

1.5 KiB
Raw Blame History

Phase 6.17 Plan (20251023)

Goal

  • Mid を中心に「速度 × メモリ効率」を両立し、mimalloc へ追い付く。

Scope

  • SACS3 準拠: Tiny ≤1KiB, Mid 132KiB, Large/Big ≥64KiB。
  • 最適化は Mid 層内の整地CAP/束数/TC/リング/閾値)に限定。

Steps (in order)

  1. Mid ヘッダレス化(安全ルート)
    • 追加API: hak_pool_mid_lookup(ptr) / hak_pool_free_fast(ptr, site)
    • hak_free_at でヘッダ読取前に Mid 判定→ pool free 直行HDR_LIGHT=2 でも安全)
    • Bench: 10s BURST/LOOP, 1/4T。Accept: Mid 4T +10% 以上。
  2. Transfer CacheTCA/B短期
    • HAKMEM_TC_DRAIN_MAX={32,64,128}, POOL_TLS_RING_CAP={8,16}, HAKMEM_TRYLOCK_PROBES={2,3}
    • Bench: 10s BURST/LOOP, 4T。Accept: +15% 以上。
  3. Mid TLS Active Page “2枚化”
    • adopt 改善(共有補充ページの初回タッチで所有者付与)
    • Bench: 10s BURST/LOOP, 1/4T。Accept: +510% 以上、RSS 退行なし。
  4. メモリ効率P2
    • 空ページ返還(即返還/遅延返還の切替)、スキャベンジ
    • RSS 監視、p99 安定性の確認。

Bench protocol

  • Headtoheadsystem / mimalloc / hakmem: scripts/run_bench_suite.sh10s, 1/4T
  • A/B: scripts/ab_fast_mid.shMid fastreturn 系)
  • 保存: docs/benchmarks/<日時> に summary/log を保存。

Owner / Status

  • Owner: hakmem 開発
  • Status: P0.1 TC最小実装済 / P0.0 ヘッダレスの安全ルートを次着手