34 lines
1.0 KiB
Markdown
34 lines
1.0 KiB
Markdown
|
|
# Next Steps Plan (2025-10-22)
|
|||
|
|
|
|||
|
|
## Scope (P1.1)
|
|||
|
|
|
|||
|
|
- Tiny remote-free MPSC + adaptive magazine (DONE baseline; extend drains)
|
|||
|
|
- false sharing mitigation (L2.5 padded locks, stats aligned) (DONE)
|
|||
|
|
- L2 page bundle prefetch (DONE)
|
|||
|
|
- L2/L2.5 mmap-backed bundles (DONE)
|
|||
|
|
|
|||
|
|
## Recommended Next Work
|
|||
|
|
|
|||
|
|
1) Tiny improvements
|
|||
|
|
- Drain MPSC from full-slabs opportunistically during alloc slow path
|
|||
|
|
- Promote slabs from full→free immediately after remote drain
|
|||
|
|
- Make magazine CAP adaptive per site (simple top-K sites)
|
|||
|
|
|
|||
|
|
2) L2/L2.5 bundle policy
|
|||
|
|
- L2: multi-bundle refill when hit/miss ratio degrades in window
|
|||
|
|
- L2.5: demand-zero (MADV_DONTNEED) policy for 512KB/1MB on cold sites
|
|||
|
|
|
|||
|
|
3) Site-bucket policy table (ACE)
|
|||
|
|
- Site×sizeバケットの1バイト方策テーブル(読み出し無ロック、更新は窓時)
|
|||
|
|
|
|||
|
|
## Env toggles
|
|||
|
|
|
|||
|
|
- Site Rules: `HAKMEM_SITE_RULES=1`
|
|||
|
|
- EVO sampling: `HAKMEM_EVO_SAMPLE=N`
|
|||
|
|
|
|||
|
|
## Notes
|
|||
|
|
|
|||
|
|
- Keep hot path reads lock-free; learning/updates only on window close
|
|||
|
|
- Prefer per-shard/per-site state to avoid global contention
|
|||
|
|
|