From: Jason Wang Subject: Re: TSQ accounting skb->truesize degrades throughput for large packets Date: Tue, 10 Sep 2013 15:45:47 +0800 Message-ID: <522ECE2B.7020409__22632.1783535697$1378799305$gmane$org@redhat.com> References: <20130906101635.GI14104@zion.uk.xensource.com> <1378472268.31445.15.camel@edumazet-glaptop> <522A049A.7000105@citrix.com> <1378486604.31445.34.camel@edumazet-glaptop> <522D9466.6020205@redhat.com> <1378734444.26319.28.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VJIeK-0002HY-Sq for xen-devel@lists.xenproject.org; Tue, 10 Sep 2013 07:46:13 +0000 In-Reply-To: <1378734444.26319.28.camel@edumazet-glaptop> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Eric Dumazet Cc: Wei Liu , Ian Campbell , "Michael S. Tsirkin" , netdev@vger.kernel.org, Jonathan Davies , Zoltan Kiss , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On 09/09/2013 09:47 PM, Eric Dumazet wrote: > On Mon, 2013-09-09 at 17:27 +0800, Jason Wang wrote: > >> Virtio-net orphan the skb in .ndo_start_xmit() so TSQ can not throttle >> packets in device accurately, and it also can't do BQL. Does this means >> TSQ should be disabled for virtio-net? >> > If skb are orphaned, there is no way TSQ can work at all. For example, virtio-net will stop the tx queue when it finds the tx queue may full and enable the queue when some packets were sent. In this case, tsq works and throttles the total bytes queued in qdisc. This usually happen during heavy network load such as two sessions of netperf. > > It is already disabled, so why do you want to disable it ? > > We notice a regression, and bisect shows it was introduced by TSQ.