~/talk

Performance Optimization 101

Talkat Erlang Factory SF Bay Area 2014 · 2014-03-06..03-07· [testing]
links:none on file
slides:none on file

An HTTP server example shows the real bottlenecks and fixes: the acceptor loop suffers from expensive controlling process switches so worker processes accept sockets directly and multiple listeners run in parallel, enabling 100,000 requests/sec. Binary pattern matching beats inbuilt HTTP biff in heavy multicore tests, parsing drops from 46µs to 24µs with the native compiler, and replacing erlang:now with OS timestamp plus ETS caching avoids locks and copies. Profiling uses eflame, nifs stay under ~500µs, GC drops from 325k/s to ~8k/s, and cpusets cut context switches.

AI-written summary · about

  1. 0:00Start
  2. 0:42HTTP API server
  3. 10:46Gotchas
  4. 12:29Profiling
  5. 16:07Micro benchmarks
  6. 20:56Process Tuning
  7. 22:13Monitoring
  8. 24:54VM Stats
  9. 26:14System Stats
  10. 26:56System Monitor
  11. 28:52Dashboard
  12. 30:09VM Tuning
  13. 33:53Lock counter
  14. 34:37Other tools
~/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.