Skip to content

Instantly share code, notes, and snippets.

@sameo
Created February 10, 2020 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sameo/4aff0f107d38236cf547be40863dacbb to your computer and use it in GitHub Desktop.
Save sameo/4aff0f107d38236cf547be40863dacbb to your computer and use it in GitHub Desktop.

Data gathering

Mitigations

  • CPU pinning and reservation (No steal time)
  • CPU flags (-qemu64)
  • Heavy weight vs light weight exits
  • Avoid scheduling events on idle vCPUs
  • vhost-user based IO: Poll mode drivers
  • passthrough
  • Reduce timer interrupts
  • CPU stolen time

Links

https://www.qemu.org/2019/11/15/micro-optimizing-kvm-vmexits/ https://github.com/brendangregg/bpf-perf-tools-book/tree/master/originals/Ch16_Hypervisors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment