From: "David S. Ahern" <daahern@cisco.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Avi Kivity <avi@redhat.com>, Tomasz Chmielewski <mangoo@wpkg.org>,
Felix Leimbach <felix.leimbach@gmx.net>,
kvm@vger.kernel.org, Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: strange guest slowness after some time
Date: Thu, 19 Mar 2009 00:08:58 -0600 [thread overview]
Message-ID: <49C1E17A.1090102@cisco.com> (raw)
In-Reply-To: <49C1D6A2.4070604@cisco.com>
David S. Ahern wrote:
>
> Rusty Russell wrote:
>> On Wednesday 18 March 2009 16:59:36 Avi Kivity wrote:
>>> Tomasz Chmielewski wrote:
>>>> virtio_net virtio0: id 64 is not a head!
>> This means that qemu said "I've finished with buffer 64" and the guest didn't
>> know anything about buffer 64.
>>
>> We should not lock up, tho networking is toast: I think that qemu got upset
>> and that caused this as well as it to chew 100% cpu.
>>
>> I'll see if I can reproduce with kvm-84 userspace and 2.6.27 guests, 32-bit
>> guests on a 64-bit AMD host. What's your kvm/qemu command line?
>>
>
> I've hit this as well.
>
> Intel host, running RHEL5.3, x86_64 with KVM-81.
>
> Guest is RHEL4.7, 32-bit, with the virtio drivers from RHEL4.8 beta.
>
> Happens pretty darn quickly for me.
>
> david
>
Like I said, pretty darn quickly.
More information for you. Command line (a few elements blurred) for this
run (started about 15 minutes ago):
kvm -localtime -no-reboot -m 3584 -smp 4 \
-drive file=/dev/cciss/c0d0,if=scsi,cache=off,boot=on \
-drive file=/dev/cciss/c0d1,if=scsi,cache=off,boot=off \
-net nic,vlan=0,macaddr=00:11:22:33:44:55,model=virtio \
-net tap,vlan=0,ifname=tap0,script=no,downscript=no \
-net nic,vlan=1,macaddr=00:12:34:56:78:1,model=virtio \
-net tap,vlan=1,ifname=tap1,script=no,downscript=no \
-usb -usbdevice tablet -mem-path /hugepages \
-pidfile /tmp/1.pid \
-monitor unix:/tmp/1,server,nowait \
-vnc :1
It does not take much network traffic for the network to lock up. In
this case, the host shows 2 kvm threads spinning -- for vcpus 2,3. I
have vcpus pinned to pcpus (vcpu0:pcpu0, etc).
Backtrace for kvm, though nothing interesting:
Thread 5 (Thread 0x43344940 (LWP 3153)):
#0 0x00002b8af5088c77 in ioctl () from /lib64/libc.so.6
#1 0x0000000000530ece in kvm_run ()
#2 0x0000000000506529 in kvm_cpu_exec ()
#3 0x00000000005067c0 in ap_main_loop ()
#4 0x00002b8af46aa367 in start_thread () from /lib64/libpthread.so.0
#5 0x00002b8af50900ad in clone () from /lib64/libc.so.6
Thread 4 (Thread 0x43d45940 (LWP 3154)):
#0 0x00002b8af5088c77 in ioctl () from /lib64/libc.so.6
#1 0x0000000000530ece in kvm_run ()
#2 0x0000000000506529 in kvm_cpu_exec ()
#3 0x00000000005067c0 in ap_main_loop ()
#4 0x00002b8af46aa367 in start_thread () from /lib64/libpthread.so.0
#5 0x00002b8af50900ad in clone () from /lib64/libc.so.6
In the guest, I see 2 threads of 2 separate processes spinning on cpus
2,3. They appear to be spinning kernel side.
Attempts to restart the network froze the guest console, and at this
point the host shows 3 threads spinning away, though not at 100% cpu.
The qemu monitor was able to push a system_powerdown event to the guest,
and it showed signs of receiving it though it did not powerdown on its own.
david
>
>> Thanks,
>> Rusty.
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
next prev parent reply other threads:[~2009-03-19 6:18 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-07 15:47 strange guest slowness after some time Tomasz Chmielewski
2009-03-07 16:41 ` Johannes Baumann
2009-03-07 16:54 ` Tomasz Chmielewski
2009-03-09 9:18 ` Tomasz Chmielewski
2009-03-09 9:28 ` Tomasz Chmielewski
2009-03-19 13:03 ` Tomasz Chmielewski
2009-03-09 9:55 ` Avi Kivity
2009-03-09 10:22 ` Tomasz Chmielewski
2009-03-09 10:25 ` Avi Kivity
2009-03-09 10:31 ` Tomasz Chmielewski
2009-03-09 10:37 ` Avi Kivity
2009-03-09 10:54 ` Tomasz Chmielewski
2009-03-09 11:37 ` Tomasz Chmielewski
2009-03-09 12:14 ` Avi Kivity
2009-03-09 12:52 ` Tomasz Chmielewski
2009-03-15 15:41 ` Avi Kivity
2009-03-15 16:14 ` Avi Kivity
2009-03-15 13:19 ` Tomasz Chmielewski
2009-03-17 10:47 ` Tomasz Chmielewski
2009-03-17 11:16 ` Avi Kivity
2009-03-17 11:25 ` Tomasz Chmielewski
2009-03-17 15:32 ` Felix Leimbach
2009-03-17 15:43 ` Tomasz Chmielewski
2009-03-17 17:01 ` Felix Leimbach
2009-03-17 17:05 ` Avi Kivity
2009-03-17 18:49 ` Felix Leimbach
2009-03-18 6:36 ` Avi Kivity
2009-03-18 7:57 ` Felix Leimbach
2009-03-18 8:48 ` Avi Kivity
2009-03-18 9:08 ` Felix Leimbach
2009-03-17 17:38 ` Tomasz Chmielewski
2009-06-08 11:02 ` Felix Leimbach
2009-06-16 14:26 ` Tomasz Chmielewski
2009-03-31 8:50 ` Tomasz Chmielewski
2009-04-01 4:22 ` David S. Ahern
2009-04-01 6:21 ` Tomasz Chmielewski
2009-04-06 15:19 ` Tomasz Chmielewski
2009-04-08 0:49 ` Rusty Russell
2009-04-08 5:45 ` Tomasz Chmielewski
2009-05-26 11:49 ` Tomasz Chmielewski
2009-05-26 11:55 ` Avi Kivity
2009-05-26 12:05 ` Tomasz Chmielewski
2009-05-26 12:10 ` Avi Kivity
2009-05-26 14:07 ` Tomasz Chmielewski
2009-05-26 14:35 ` Avi Kivity
2009-05-28 14:58 ` Tomasz Chmielewski
2009-05-31 8:43 ` Avi Kivity
2009-03-17 15:52 ` Avi Kivity
2009-03-17 16:12 ` Tomasz Chmielewski
2009-03-17 17:05 ` Felix Leimbach
2009-03-17 17:10 ` Avi Kivity
2009-03-17 17:43 ` Tomasz Chmielewski
2009-03-17 18:55 ` Tomasz Chmielewski
2009-03-17 19:04 ` Felix Leimbach
2009-03-17 19:24 ` Tomasz Chmielewski
2009-03-17 20:14 ` Tomasz Chmielewski
2009-03-17 22:34 ` Tomasz Chmielewski
2009-03-17 23:02 ` Tomasz Chmielewski
2009-03-18 6:29 ` Avi Kivity
2009-03-19 4:59 ` Rusty Russell
2009-03-19 5:22 ` David S. Ahern
2009-03-19 6:08 ` David S. Ahern [this message]
2009-03-19 8:03 ` Tomasz Chmielewski
2009-03-19 14:11 ` David S. Ahern
2009-03-17 18:57 ` Felix Leimbach
2009-03-18 5:54 ` Felix Leimbach
2009-03-17 16:27 ` Tomasz Chmielewski
2009-03-17 17:14 ` Felix Leimbach
2009-03-17 17:19 ` Avi Kivity
2009-03-17 17:34 ` Tomasz Chmielewski
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=49C1E17A.1090102@cisco.com \
--to=daahern@cisco.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=felix.leimbach@gmx.net \
--cc=kvm@vger.kernel.org \
--cc=mangoo@wpkg.org \
--cc=rusty@rustcorp.com.au \
/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;
as well as URLs for NNTP newsgroup(s).