~/talk

Memory Why You Need to Care

Talkat Devnexus 2021 · 2021-02-17..02-18· [observability, web-performance]
slides:none on file

Concrete claim: excessive short-lived allocations make the JVM memory system and hardware caches thrash, turning many allocations into cache misses that cost roughly 91 CPU ticks per miss on DDR4‑2133 and limit practical allocation throughput to about 8 GB/s. Aim for allocation rates under 1 GB/s; cutting churn commonly yields 2–4x speedups (one case ~40% improvement). Use profilers that report allocation frequency with stack traces, target hot sites for fixes, and prefer escape analysis/scalar replacement over simply enlarging eden.

AI-written summary · about

  1. 0:00Introduction to memory importance
  2. 1:05Why memory efficiency matters
  3. 2:51How Java uses memory
  4. 3:54Excessive memory churn explained
  5. 6:25War stories on memory inefficiency
  6. 8:33Cost of memory allocation in Java
  7. 11:45CPU cache hierarchy and latency
  8. 16:45Memory allocation rate limits
  9. 20:37Revolving door performance pattern
  10. 22:45Ideal allocation rate targets
  11. 24:11Detecting memory inefficiency
  12. 25:35Profiling memory allocations
  13. 28:01Importance of monitoring
  14. 30:53CPU utilization misconceptions
  15. 31:15Key performance metrics
~/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.