~/talk

Android memory and games

Talkat Google I/O 2019 · 2019-05-07..05-09· [android, game-development]
links:none on file
slides:none on file

Android games run without a fixed RAM budget because the system keeps RAM full for app switching, uses zRAM compressed swap, and kills processes via LMK when thresholds hit; a test app still allocates 4.1 GB on a 4 GB device because much is compressed. Q adds pressure stall info, RSS trace points and more reliable onTrimMemory warnings; use Perfetto (long traces, RSS) and Heapprofd for low-overhead heap tracing, check adb dumpsys meminfo and bugreport, throttle allocations and evict assets to avoid thrashing and kills.

AI-written summary · about

  1. 0:00Intro
  2. 0:15Overview
  3. 1:01Problems with memory
  4. 2:40How much memory is available
  5. 4:24Android memory philosophy
  6. 6:48Memory types
  7. 9:13Memory reclaims
  8. 15:19Summary
  9. 15:51Respond to longterm memory
  10. 20:31Be flexible
  11. 25:16PSS vs RSS
  12. 26:51Perfetto
  13. 31:11Heap Property
  14. 32:13Bug Report
  15. 34:16Conclusion
~/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.