~/talk

Help, I'm Running Out of Memory!

Talkat PHP UK Conference 2013 · 2013-02-21..02-23· [php]
slides:none on file

Numbers and tools decide: PHP uses a 256KB segment allocator called Zend Memory Manager that cuts malloc/free calls (example test drops ~2,000,000 allocations to ~22,000), costs ~10% more resident memory but runs ~10% faster, and reports allocation via memory_get_usage versus memory_get_usage(true). Use /proc, pmap -x, smaps, Valgrind, Xdebug and the memprof extension to see which lines and requires consume dozens or hundreds of MB (range(), file_get_contents(), DOM parsing, big DB result sets); APC typically raises shared memory, not lowers per-request usage.

AI-written summary · about

  1. 0:00Intro
  2. 2:06What we'll cover together
  3. 2:40Memory from hardware
  4. 6:44Linux memory monitoring
  5. 15:49Why a custom layer ?
  6. 17:24Zend MM test script
  7. 19:22Zend MM launch test
  8. 23:53A quick word on ZendMM internals
  9. 27:16ZendMM memory monitoring
  10. 32:35PHP Variables
  11. 39:26Monitoring memory usage
  12. 45:32Thank you for listening
~/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.