~/talk

Tracing VMs Seeing How Host and Guest Interact

Talkat LinuxCon Europe 2022 · 2022-09-13..09-16· [observability]
links:none on file
slides:none on file

Shows how to record and correlate host and guest kernel traces using trace-cmd and KernelShark, enabling synchronized host/guest timelines via a trace-cmd agent over vsockets. Focuses on concrete artifacts: enabling 100+ KVM events, capturing sysbench MySQL runs pinned to CPU1, detecting thousands of EPT violations (one function hit ~2113 times) and microsecond/nanosecond exit timings, a small analyzer kvm-exit.c and libtracecmd for merged parsing, and zero-copy guest→host transfer via splice; several features work now, some are still laptop-only.

AI-written summary · about

  1. 0:00Start
  2. 2:04KVM Trace Events
  3. 3:02Tools to determine Virtual Machine Overhead
  4. 8:05Using libtracecmd
  5. 11:03Running on the trace.dat file created by our record
  6. 13:43Using trace-cmd agent
  7. 19:09Seeing Guest exit functions
~/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.