~/talk

Inspecting and Optimizing Memory Usage in Linux

links:none on file
slides:none on file

Practical methods for tight-RAM devices: tests run on i.MX93 EVK with 2 GB RAM show the page struct uses ~64 bytes so representing 2 GB costs ~32 MB, and removing unneeded features (filesystems, IPv6, graphics, unused drivers) plus size-tuned compiler flags cuts the kernel from ~32 MB to 11 MB. Process-level accounting uses smem/smaps to get USS and PSS (avoid double-counting shared pages), leak hunting uses valgrind/--asan and a Python plotter, and limits via mem= kernel command line; stable limit 64 MB, 40 MB unstable.

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.