~/talk

Inspecting and Optimizing Memory Usage in Linux

Talkat Open Source Summit Europe 2024 · 2024-09-16..09-18· [web-performance]
links:none on file
slides:none on file

Examines real measurements on an i.MX93 EVK with 2 GB RAM, showing Linux page structs cost ~64 bytes each (about 32 MB overhead) and using /proc/buddyinfo, /proc/meminfo and smaps to find fragmentation and allocations. Uses smem (PSS/USS), ps, free and valgrind/vmchecker to locate leaks and shows zram and swap tradeoffs plus OOM-killer behavior and oom_score_adj tuning. Demonstrates kernel build pruning that reduced kernel from 32MB to 11MB and recommends targeted config and compiler size flags rather than vague optimizations.

AI-written summary · about

  1. 0:00Memory optimization intro
  2. 1:05Virtual memory basics
  3. 5:47NUMA and memory zones
  4. 11:30Kernel memory analysis
  5. 17:11User space memory metrics
  6. 22:18System memory with free
  7. 24:29Kernel binary optimization
  8. 26:21Memory leak detection
  9. 30:21Swap and zram
  10. 33:14OOM killer tuning
  11. 35:20Q&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.