mimalloc
mimalloc copied to clipboard
Help with stats
I'm a bit confused about the meaning of the terms committed and reserved. Also current_commit is way smaller than current_rss.
Note: I additionally printed mi_process_info
Before calling collect(true)
heap stats: peak total freed current unit count
reserved: 19.1 GiB 49.0 GiB 37.7 GiB 11.2 GiB not all freed!
committed: 16.8 GiB 54.3 GiB 47.2 GiB 7.0 GiB not all freed!
reset: 0 0 0 0 ok
touched: 2.2 MiB 5.1 MiB 2.4 GiB -2.4 GiB ok
segments: 41 44 41 3 not all freed!
-abandoned: 12 12 3 9 not all freed!
-cached: 0 0 0 0 ok
pages: 0 0 3.4 Ki -3.4 Ki ok
-abandoned: 192 192 74 118 not all freed!
-extended: 0
-noretire: 0
mmaps: 0
commits: 3.8 Ki
threads: 60 66 40 26 not all freed!
searches: 0.0 avg
numa nodes: 1
elapsed: 77.734 s
process: user: 36.857 s, system: 16.865 s, faults: 2, rss: 13.0 GiB, commit: 16.8 GiB
process info: elapsed: 77734 ms, user: 36857 ms, system: 16865 ms, current_rss: 8.7 GiB, peak_rss: 13 GiB, current_commit: 7.1 GiB, peak_commit: 16.8 GiB, page_faults: 2
After calling collect(true)
heap stats: peak total freed current unit count
reserved: 19.1 GiB 49.0 GiB 37.7 GiB 11.2 GiB not all freed!
committed: 16.8 GiB 54.3 GiB 52.5 GiB 1.8 GiB not all freed!
reset: 0 0 0 0 ok
touched: 2.2 MiB 5.1 MiB 2.4 GiB -2.4 GiB ok
segments: 41 44 41 3 not all freed!
-abandoned: 12 12 3 9 not all freed!
-cached: 0 0 0 0 ok
pages: 0 0 3.4 Ki -3.4 Ki ok
-abandoned: 192 192 74 118 not all freed!
-extended: 0
-noretire: 0
mmaps: 0
commits: 3.8 Ki
threads: 60 66 40 26 not all freed!
searches: 0.0 avg
numa nodes: 1
elapsed: 78.083 s
process: user: 36.857 s, system: 17.214 s, faults: 2, rss: 13.0 GiB, commit: 16.8 GiB
process info: elapsed: 78083 ms, user: 36857 ms, system: 17214 ms, current_rss: 8.7 GiB, peak_rss: 13 GiB, current_commit: 1.8 GiB, peak_commit: 16.8 GiB, page_faults: 2