All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: strange guest slowness after some time
Date: Mon, 09 Mar 2009 11:55:50 +0200	[thread overview]
Message-ID: <49B4E7A6.3090601@redhat.com> (raw)
In-Reply-To: <49B29705.6000904@wpkg.org>

Tomasz Chmielewski wrote:
> I have a strange slowness which affects some guests after they are 
> running for some time. "Slowness" can happen a few hours after guest 
> start, or, a couple of days after guest start.
>
> What do I mean by "slowness"?
>
> This is how long it takes to log in via SSH to an unaffected guest - 
> below a second:
>
> $ time ssh backupuser@normal_guest exit
> 0.02user 0.01system 0:00.67elapsed 4%CPU (0avgtext+0avgdata 0maxresident)
>
> Now, let's try to log in to the affected guest running on the same 
> host - more than 12 seconds:
>
> $ time ssh backupuser@slow_guest exit
> 0.02user 0.01system 0:12.56elapsed 0%CPU (0avgtext+0avgdata 0maxresident)
>
> If I log in via SSH to the affected guest, any key presses lag a 
> second or two.
>
>
> This is actually weird - if I run something IO intensive on the guest, 
> the login is much faster (running CPU-intensive tasks makes no 
> difference):
>
> guest# dd if=/dev/vda of=/dev/null
>
> $ time ssh backupuser@slow_guest exit
> 0.02user 0.00system 0:00.70elapsed 2%CPU (0avgtext+0avgdata 0maxresident)
>
> Also, running "ping -f <slow_guest>" helps a lot and SSH logins are fast.
>
>
> Look at the difference here - 7470ms vs 139183ms (and packet losses):
>
> # ping -f -c 10000 normal_guest
>
> 10000 packets transmitted, 10000 received, 0% packet loss, time 7470ms
> rtt min/avg/max/mdev = 0.443/0.709/6.487/0.112 ms, ipg/ewma 
> 0.747/0.716 ms
>
> # ping -f -c 10000 slow_guest
>
> 10000 packets transmitted, 9934 received, 0% packet loss, time 139183ms
> rtt min/avg/max/mdev = 0.470/14.337/50.455/5.409 ms, pipe 4, ipg/ewma 
> 13.919/14.788 ms
>
>
> CPU-intensive tasks are as fast as on unaffected guests.
> Reading from /dev/vda is as fast as on unaffected guests.
>
> So the only thing broken seems to be the network.
>
>
> Rebooting the guest does not help - it is still slow.
> The only thing that helps is stopping the guest and starting it again 
> (i.e., stopping kvm process and starting a new one).
>
>
> Is there an explanation to this phenomenon? Looks like a problem with 
> virtio drivers somewhere, or?
>
>
>
> The host is running kvm-83.
> Affected guests are running 2.6.27.14 kernels and use virtio drivers.
> The problem happens only _sometimes_. Out of 9 guests I have running 
> on this host, I saw this problem only on 3 guests. I never saw this 
> happening on more than one guest at a time.
> All three have 512 MB memory assigned, other guests have less memory.
>

I'm guessing there's a problem with timers or timer interrupts.

What is the host cpu?

Does the problem occur if you pin a guest to a cpu with taskset?

-- 
error compiling committee.c: too many arguments to function



  parent reply	other threads:[~2009-03-09  9:55 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 [this message]
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
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=49B4E7A6.3090601@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mangoo@wpkg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.