~/talk

Host & Guest Tracing in Virtualization: "To sync, or not to sync?"

Talkat KVM Forum 2021 · 2021-09-15..09-16· [observability]
links:none on file
slides:none on file

Implements host↔guest trace collection in trace-cmd 2.9 using vSockets (optionally FIFOs on KVM) and visualizes merged traces in KernelShark 2.0; synchronizes timestamps either via a PTP‑like packet exchange (needs ~500 exchanges to mitigate CPU preemption) or by reading KVM’s exposed TSC offset/rate from debugfs. Evaluates with 30×20s sessions producing ~8,000 samples for timer sequences and ~3,000 for idle sequences; results show KVM debugfs TSC offset gives far lower mean and standard deviation than PTP‑like synchronization, so KVM is more accurate but less portable.

AI-written summary · about

  1. 0:00Intro
  2. 0:58Ftrace
  3. 1:39Host-Guest kernel tracing
  4. 3:09Trace data transfer
  5. 5:02Time stamps synchronisation - PTP
  6. 8:31Tools & Libraries
  7. 9:45Verifying the results
  8. 10:19Validation: kvm_entry & kvm_exit events
  9. 10:44Validation: what we expect?
  10. 11:26Time-sync accuracy evaluation: an event-based approa
  11. 12:10First set: hrtimer & MSR events
  12. 13:44Second set: idle task & HLT events
  13. 15:48Let's automate it: final tool
  14. 17:08PTP vs KVM: analysis
  15. 17:49PTP vs KVM: evaluation
  16. 18:54Conclusion
  17. 19:57Links & Acknowledgments
~/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.