~/talk

Disk is fast, memory is slow. Forget all you think you know

Talkat RubyConf 2019 · 2019-11-18..11-20· [ruby, web-performance]
links:none on file
slides:none on file

Rewrites a Prometheus Ruby client to make cross-process counters practical: sets a hard one microsecond target for increments, measures real costs, and tries C extensions, PStore, Redis, SQLite, and memory maps. Finds memory maps causing segfaults with the mmap C gem, sees Redis suffer from IPC round trips, and discovers plain file writes (relying on OS buffering) run ~6–9 microseconds — slower than memory but reliable and portable. The store is fast enough, merged, and used in production.

AI-written summary · about

  1. 0:00Start
  2. 1:40Prometheus polls your app for its metrics
  3. 2:19Pre-fork servers
  4. 4:03The problem
  5. 5:25Performance
  6. 6:03Separate storage
  7. 7:07The road ahead
  8. 11:55Can we even do this?
  9. 23:30NOPE NOPE NOPE NOPE
  10. 31:28Files vs MMaps
~/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.