Files
hakmem/docs/benchmarks/2025-10-22_SWEEP_NOTES.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

45 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2025-10-22 Sweep Notes (Larson)
抜粋1秒ランと再現コマンド。詳細は生ログを参照。
## 環境
- ビルド: `make shared`計測ONは `make debug`
- 共有: `LD_PRELOAD=$(readlink -f ./libhakmem.so)`
- 代表ENV必要に応じて付与:
- `HAKMEM_PROF=1 HAKMEM_PROF_SAMPLE=7`
- `HAKMEM_LEARN=1`CAP学習ON
- `HAKMEM_WRAP_L2=1 HAKMEM_WRAP_L25=1`ラッパー内L1許可
## DYN114KB効果ラッパーOFF
```
# 1315KB, 1T, 1s
DYN1=OFF → 1.44M ops/s
DYN1=ON → 4.57M ops/s
```
コマンド:
```
LD_PRELOAD=... HAKMEM_MID_DYN1=0 mimalloc-bench/bench/larson/larson 1 13000 15000 10000 1 12345 1
LD_PRELOAD=... HAKMEM_MID_DYN1=14336 mimalloc-bench/bench/larson/larson 1 13000 15000 10000 1 12345 1
```
## ラッパーON整地後最低バンドル=3
```
# 1315KB, 1T, 1s, WRAP L1 ON
DYN1=ON → 4.18M ops/s
DYN1=OFF → 4.66M ops/s
# 232KB, 4T, 1s, WRAP L1 ON
≈ 4.02M ops/s
```
コマンド:
```
HAKMEM_WRAP_L2=1 HAKMEM_WRAP_L25=1 HAKMEM_POOL_MIN_BUNDLE=3 LD_PRELOAD=... HAKMEM_MID_DYN1=14336 mimalloc-bench/bench/larson/larson 1 13000 15000 10000 1 12345 1
HAKMEM_WRAP_L2=1 HAKMEM_WRAP_L25=1 HAKMEM_POOL_MIN_BUNDLE=3 LD_PRELOAD=... HAKMEM_MID_DYN1=0 mimalloc-bench/bench/larson/larson 1 13000 15000 10000 1 12345 1
HAKMEM_WRAP_L2=1 HAKMEM_WRAP_L25=1 HAKMEM_POOL_MIN_BUNDLE=3 LD_PRELOAD=... mimalloc-bench/bench/larson/larson 1 2048 32768 10000 1 12345 4
```
メモ:
- ラッパーOFFではDYN1の効果が明確。
- ラッパーONではcap/steal/bundleの整地で退化を概ね解消。今後はDYN1 CAP初期値、bundle下限、steal幅を微調整予定。