public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Buehler <aspam@cox.net>
To: kvm@vger.kernel.org
Subject: probable vm exit latency issue?
Date: Fri, 15 Dec 2017 14:36:56 -0500	[thread overview]
Message-ID: <5A342458.9010403@cox.net> (raw)

I am debugging large latency issues in a realtime KVM instance, trying to make an existing VM (debugged on another type of box) run on an HP proliant now.

cyclictest came up with the following snippet:

kworker/-71      0.....11 13483223us : ata_sff_exec_command <-ata_bmdma_setup
kworker/-71      0.....11 13483228us : ata_sff_sync <-ata_sff_exec_command
kworker/-71      0.....11 13483231us : delay_tsc <-__const_udelay
kworker/-71      0.....11 13483231us*: ata_bmdma_start <-ata_bmdma_qc_issue
kworker/-71      0d....11 13496181us : smp_apic_timer_interrupt <-apic_timer_interrupt
kworker/-71      0d....11 13496181us : irq_enter <-smp_apic_timer_interrupt
kworker/-71      0d....11 13496182us : rcu_irq_enter <-irq_enter

I don't have a lot of experience with this; is this a DMA start for disk I/O, presumably causing an exit from the VM?  For almost 13 milliseconds????

I haven't been able to find much obvious about eliminating this -- any suggestions?  I set caching to writeback without effect.

    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/boot.qcow2'/>
      <backingStore type='file' index='1'>
        <format type='raw'/>
        <source file='/root.qcow2'/>
        <backingStore/>
      </backingStore>
      <target dev='hdb' bus='ide'/>
      <alias name='ide0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>

Joe Buehler

             reply	other threads:[~2017-12-15 19:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15 19:36 Joe Buehler [this message]
2017-12-15 20:08 ` probable vm exit latency issue? Konrad Rzeszutek Wilk
     [not found] ` <mL8E1w02Z1iuWrx01L8FMi>
2017-12-15 20:24   ` Joe Buehler
2017-12-15 20:48     ` Joe Buehler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5A342458.9010403@cox.net \
    --to=aspam@cox.net \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox