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

When does memory reach its high-water mark?

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

I locate, among the 32 reported instrumented reads, the first cache-return point where the cumulative peak is visible; the reported peak then matches the end-of-read peak. SCALENE samples significant footprint changes, whereas this experiment probes after cache returns, making it a more local timing observation. It could guide where to investigate transient growth, but the probe stores samples and may perturb memory; the promised fixed-buffer control is still needed.

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 record the cumulative tracemalloc peak and compare it with the final reading on the same run. A separate run measures the peak with no inner probes. The probes keep their observations in memory.

Result

In all 32 published instrumented reads the final peak is already visible inside the loop. I isolate the first return where this maximum becomes visible. The precise allocating instruction and the uninstrumented peak remain separate measurements.

Prior work

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

Next question

I will measure probe disturbance with a fixed-size buffer and separate processes.

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.