You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Top-k cost rows: CMS/CountSketch+heap exclude the heap from memory, UnivMon includes it #146
The top-k rows in the rqe-optimizer cost table don't count memory the same way:
CMS+heap and CountSketch+heap leave the heap out.memory_bytes is rows × cols × size_of::<i32>(), with a comment saying the heap of at most CMS_HEAP_TOP_K = 32 items is negligible (sketch-bench/src/wrappers/cms_heap/sketchlib.rs:50-55, sketch-bench/src/wrappers/cs_heap.rs:35-37).
All three are Capability::TopK candidates in rqe-optimizer. Its candidate pruning and the MILP's memory term compare mem_bytes_per_instance across them, so they aren't compared like for like.
Fix
Add the heap to the CMS+heap and CountSketch+heap footprints: CMS_HEAP_TOP_K entries of (key, count). Then re-run scripts/export_rqe_optimizer_costs.sh.
memory_bytes is a self-reported formula, not a measurement. The measured heap_bytes_net exists, but only with the heap-track feature, which the export doesn't enable.
Activity