~/talk

Juggling with Bits and Bytes

Talkat Flink Forward 2015 · 2015-10-12..10-13· [data-engineering]
slides:none on file

Explains Flink’s active memory management that allocates 32KB memory segments (on- or off-heap), writes with sun.misc.Unsafe-backed serializers and operates directly on bytes; sorting uses a two-region buffer with fixed-length binary prefix keys and pointers to full objects so most compares avoid deserialization. Benchmarks sort 10M records (~150 MB): heap-object sort uses ~700 MB and triggers GC spikes, serialized sort uses 277–315 MB serialized footprint and minimal GC. Hybrid-hash and external-merge strategies spill gracefully when data exceeds memory.

AI-written summary · about

  1. 0:00Introduction to memory management
  2. 3:40Flink’s active memory approach
  3. 9:01Memory segments and allocation
  4. 13:16Serialization stack and type system
  5. 18:11Operating on binary data
  6. 20:16External sort merge example
  7. 24:09Performance benchmarks
  8. 30:48Handling disk spills
  9. 32:11Optimizing memory layout
  10. 33:37Summary and future work
  11. 35:24Q&A on type extraction
  12. 36:30Optimizing group operations
  13. 38:39Compression in serialization
  14. 39:43Java Unsafe and licensing
  15. 42:53Disk spills and fragmentation
  16. 46:06Memory fragmentation in delta iteration
  17. 47:30Deserialization from off-heap
  18. 48:02Fallback to Kryo serialization
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.