All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: david ahern <daahern@cisco.com>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: Re: still seeing network freezes with rtl8139 nic
Date: Mon, 25 Feb 2008 10:54:46 +0200	[thread overview]
Message-ID: <47C28256.7020908@qumranet.com> (raw)
In-Reply-To: <47C1CA4F.3020605@cisco.com>

david ahern wrote:
> I've run a lot more tests:
>
>
> - if I remove the "if (!change) return" optimization from pci_set_irq the
> rtl8139 nic worked fine for 16+ hours. I'm not recommending this as a fix, just
> confirming that the problem goes away.
>
>   

Interesting.  What can cause this to happen?

- some non-pci device shares the same irq (unlikely)

- the pci link sharing is broken.  Is the eth0 irq shared?

Please post /proc/interrupts.

- the in-kernel ioapic is buggy and needs the extra kicking the 
optimization prevents.  Can be checked by re-adding the optimization to 
kvm_ioapic_set_irq() (keeping it removed in qemu).  If it works, the 
problem is in userspace.  If it fails, the problem is in the kernel.

Something like

  static int old_level[16];

  if (level == old_level[irq])
     return;
  old_level[irq] = level;



-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  reply	other threads:[~2008-02-25  8:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 18:33 still seeing network freezes with rtl8139 nic david ahern
2008-02-24 10:14 ` Avi Kivity
2008-02-24 19:49   ` david ahern
2008-02-25  8:54     ` Avi Kivity [this message]
2008-02-25 16:11       ` david ahern
2008-02-25 17:06         ` david ahern
2008-02-25 17:19           ` Avi Kivity
2008-02-26  4:57             ` david ahern
2008-02-26  9:19               ` Avi Kivity
2008-02-26 14:41                 ` Avi Kivity
2008-02-26 14:55                   ` david ahern
2008-02-26 14:50                 ` david ahern
2008-02-26 15:07                   ` Avi Kivity
2008-03-04 18:05 ` Eckersid SIlapaswang
2008-03-05 15:04   ` david ahern
2008-03-05 17:14     ` Avi Kivity
2008-03-05 18:33       ` david ahern

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=47C28256.7020908@qumranet.com \
    --to=avi@qumranet.com \
    --cc=daahern@cisco.com \
    --cc=kvm-devel@lists.sourceforge.net \
    /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.