All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Davies <richard.j.davies@gmail.com>
To: Chris Webb <chris@arachsys.com>
Cc: netdev@vger.kernel.org, qemu-devel@nongnu.org,
	Jason Wang <jasowang@redhat.com>, Arnd Bergmann <arnd@arndb.de>,
	Michael Tsirkin <mst@redhat.com>
Subject: Re: Slow inbound traffic on macvtap interfaces
Date: Thu, 30 Aug 2012 09:20:57 +0100	[thread overview]
Message-ID: <20120830082057.GA18072@alpha.arachsys.com> (raw)
In-Reply-To: <20120829175256.GC3529@arachsys.com>

Chris Webb wrote:
> I found that on my laptop, the single change of host kernel config
>
> -CONFIG_INTEL_IDLE=y
> +# CONFIG_INTEL_IDLE is not set
>
> is sufficient to turn transfers into guests from slow to full wire speed

I am not deep enough in this code to write a patch, but I wonder if
macvtap_forward in macvtap.c is missing a call to kill_fasync, which I
understand is used to signal to interested processes when data arrives?


Here is the end of macvtap_forward:

  skb_queue_tail(&q->sk.sk_receive_queue, skb);
  wake_up_interruptible_poll(sk_sleep(&q->sk), POLLIN | POLLRDNORM | POLLRDBAND);
  return NET_RX_SUCCESS;


Compared to this end of tun_net_xmit in tun.c:

  /* Enqueue packet */
  skb_queue_tail(&tun->socket.sk->sk_receive_queue, skb);

  /* Notify and wake up reader process */
  if (tun->flags & TUN_FASYNC)
          kill_fasync(&tun->fasync, SIGIO, POLL_IN);
  wake_up_interruptible_poll(&tun->wq.wait, POLLIN |
                             POLLRDNORM | POLLRDBAND);
  return NETDEV_TX_OK;


Richard.

WARNING: multiple messages have this Message-ID (diff)
From: Richard Davies <richard.j.davies@gmail.com>
To: Chris Webb <chris@arachsys.com>
Cc: netdev@vger.kernel.org, Jason Wang <jasowang@redhat.com>,
	qemu-devel@nongnu.org, Arnd Bergmann <arnd@arndb.de>,
	Michael Tsirkin <mst@redhat.com>
Subject: Re: [Qemu-devel] Slow inbound traffic on macvtap interfaces
Date: Thu, 30 Aug 2012 09:20:57 +0100	[thread overview]
Message-ID: <20120830082057.GA18072@alpha.arachsys.com> (raw)
In-Reply-To: <20120829175256.GC3529@arachsys.com>

Chris Webb wrote:
> I found that on my laptop, the single change of host kernel config
>
> -CONFIG_INTEL_IDLE=y
> +# CONFIG_INTEL_IDLE is not set
>
> is sufficient to turn transfers into guests from slow to full wire speed

I am not deep enough in this code to write a patch, but I wonder if
macvtap_forward in macvtap.c is missing a call to kill_fasync, which I
understand is used to signal to interested processes when data arrives?


Here is the end of macvtap_forward:

  skb_queue_tail(&q->sk.sk_receive_queue, skb);
  wake_up_interruptible_poll(sk_sleep(&q->sk), POLLIN | POLLRDNORM | POLLRDBAND);
  return NET_RX_SUCCESS;


Compared to this end of tun_net_xmit in tun.c:

  /* Enqueue packet */
  skb_queue_tail(&tun->socket.sk->sk_receive_queue, skb);

  /* Notify and wake up reader process */
  if (tun->flags & TUN_FASYNC)
          kill_fasync(&tun->fasync, SIGIO, POLL_IN);
  wake_up_interruptible_poll(&tun->wq.wait, POLLIN |
                             POLLRDNORM | POLLRDBAND);
  return NETDEV_TX_OK;


Richard.

  reply	other threads:[~2012-08-30  8:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16  9:20 Slow inbound traffic on macvtap interfaces Chris Webb
2012-08-16  9:20 ` [Qemu-devel] " Chris Webb
2012-08-16 11:42 ` Michael S. Tsirkin
2012-08-16 11:42   ` [Qemu-devel] " Michael S. Tsirkin
2012-08-16 14:27   ` Chris Webb
2012-08-16 14:27     ` [Qemu-devel] " Chris Webb
2012-08-16 15:36     ` Michael S. Tsirkin
2012-08-16 15:36       ` [Qemu-devel] " Michael S. Tsirkin
2012-09-19 15:11       ` Macvtap bug: contractor wanted Richard Davies, Chris Webb
2012-09-19 15:11       ` Richard Davies, Chris Webb
2012-09-19 15:11         ` [Qemu-devel] " Richard Davies, Chris Webb
2012-09-19 17:54         ` David Miller
2012-09-19 17:54           ` [Qemu-devel] " David Miller
2012-08-29 17:52 ` Slow inbound traffic on macvtap interfaces Chris Webb
2012-08-29 17:52   ` [Qemu-devel] " Chris Webb
2012-08-30  8:20   ` Richard Davies [this message]
2012-08-30  8:20     ` Richard Davies
2012-08-30  8:44     ` Michael S. Tsirkin
2012-08-30  8:44       ` [Qemu-devel] " Michael S. Tsirkin

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=20120830082057.GA18072@alpha.arachsys.com \
    --to=richard.j.davies@gmail.com \
    --cc=arnd@arndb.de \
    --cc=chris@arachsys.com \
    --cc=jasowang@redhat.com \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=qemu-devel@nongnu.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.