~/talk

Memory Tiering in Python Virtual Machine

Talkat VMIL 2025 · on Wednesday, 2025-10-15· [python]
name:Yuze Li
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

A CPython C-extension called MTP infers per-object hotness by recording reference-count changes in the upper 32 bits of OB_REFCOUNT, performs a stop-the-world marking phase to discover all PyObjects, runs sampling phases and an offline-trained predictor (MLR: R^2 ≈ 0.7, Pearson ≈ 0.84) to estimate object access, aggregates into a software-defined page temperature table, and decides promotions using an eagerness metric combining percent-in-fast-tier, LLC misses, and slow-tier bandwidth. Evaluation across 33 comparisons shows MTP wins 25 vs TDP, 30 vs Alonuma, 15 vs MIS, but pays an initial marking cost and refcount-path CPU overhead.

AI-written summary · about

  1. 0:00Memory tiering in Python
  2. 1:06Python object memory use
  3. 3:37Limitations of tiering approaches
  4. 7:32Tracking object hotness
  5. 12:52Predicting object hotness
  6. 16:10Hot versus cold pages
  7. 18:40Configuring MTP
  8. 23:02MTP summary and benefits
  9. 24:07Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.