[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1260312605.19229.8.camel@w-sridhar.beaverton.ibm.com>
Date: Tue, 08 Dec 2009 14:50:05 -0800
From: Sridhar Samudrala <sri@...ibm.com>
To: rusty@...tcorp.com.au, mst@...hat.com
Cc: netdev <netdev@...r.kernel.org>
Subject: [RFC PATCH] Regression in linux 2.6.32 virtio_net seen with
vhost-net
When testing vhost-net patches with a guest running linux 2.6.32, i am
running into "Unexpected full queue" warning messages from start_xmit() in
virtio_net.c causing a lot of requeues and a drastic reduction in throughput.
With a guest running 2.6.31, i get guest to host throughput around 7000Mb/s,
but it drops to around 3200Mb/s with 2.6.32.
I don't see this problem with usermode virtio in qemu, but i get a thruput of
only 2700Mb/s with both 2.6.31 and 2.6.32.
The following patch fixes this problem by dropping the skb and not requeuing
to qdisc when it cannot be added to ring buffer. With this patch, i see
similar performance as 2.6.31 with vhost-net.
Signed-off-by: Sridhar Samudrala <sri@...ibm.com>
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index b9e002f..307cfd6 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -528,7 +528,11 @@ again:
netif_start_queue(dev);
goto again;
}
- return NETDEV_TX_BUSY;
+
+ /* drop the skb under stress. */
+ vi->dev->stats.tx_dropped++;
+ kfree_skb(skb);
+ return NETDEV_TX_OK;
}
vi->svq->vq_ops->kick(vi->svq);
Thanks
Sridhar
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists