From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhangjie (HZ)" Subject: [QA-TCP] How to send tcp small packages immediately? Date: Fri, 24 Oct 2014 15:41:17 +0800 Message-ID: <544A029D.3080508@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit To: , Jason Wang , "Michael S. Tsirkin" , , , , Return-path: Received: from szxga03-in.huawei.com ([119.145.14.66]:50338 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbaJXHm2 (ORCPT ); Fri, 24 Oct 2014 03:42:28 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi, I use netperf to test the performance of small tcp package, with TCP_NODELAY set : netperf -H 129.9.7.164 -l 100 -- -m 512 -D Among the packages I got by tcpdump, there is not only small packages, also lost of big ones (skb->len=65160). IP 129.9.7.186.60840 > 129.9.7.164.34607: tcp 65160 IP 129.9.7.164.34607 > 129.9.7.186.60840: tcp 0 IP 129.9.7.164.34607 > 129.9.7.186.60840: tcp 0 IP 129.9.7.164.34607 > 129.9.7.186.60840: tcp 0 IP 129.9.7.186.60840 > 129.9.7.164.34607: tcp 65160 IP 129.9.7.164.34607 > 129.9.7.186.60840: tcp 0 IP 129.9.7.164.34607 > 129.9.7.186.60840: tcp 0 IP 129.9.7.164.34607 > 129.9.7.186.60840: tcp 0 IP 129.9.7.186.60840 > 129.9.7.164.34607: tcp 80 IP 129.9.7.186.60840 > 129.9.7.164.34607: tcp 512 IP 129.9.7.186.60840 > 129.9.7.164.34607: tcp 512 SO, how to test small tcp packages? Including TCP_NODELAY, What else should be set? Thanks! -- Best Wishes! Zhang Jie