Atelier des rouesLab FR
Register/AT.EX32.06
Controlled experiment · AT.EX32.06

Separating retained allocations

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I treat attribution of still-live bytes by source line as a local diagnostic: with the same cache-miss count, the cache-call and coefficient groups differ between collection regimes. Fernandez Blanco et al. study programmers’ needs for comparing memory behavior, while SCALENE attributes footprint changes to source lines. This particular snapshot can help locate retained allocations, but tracemalloc snapshots omit freed temporaries and cannot explain the request peak; a time-resolved measurement is still needed.

Asking and Answering Questions During Memory Profiling — Alison Fernandez Blanco, Araceli Queriolo Córdova, Alexandre Bergel, Juan Pablo Sandoval Alcocer · Triangulating Python Performance Issues with SCALENE — Emery D. Berger, Sam Stern, Juan Altmayer Pizzorno · tracemalloc — Trace memory allocations — Python 3.10 documentation

How I rate results

Assumptions

I take a tracemalloc snapshot in separate processes after a held-out read. I group retained blocks by source line. I compare explicit and automatic collection with equal cache miss counts.

Result

Across six comparisons, cache call sites and coefficient construction produce gaps of the same sign. These retained bytes and their source-line attribution leave transient peak allocations unmeasured.

Prior work

Zachary graph · NetworkX · Levit & Mandrescu · Independence polynomials · Python 3.10 · tracemalloc

Next question

I will locate the maximum inside a query to relate snapshots to peaks.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.