From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by dpdk.org (Postfix) with ESMTP id 06DD32BF0 for ; Tue, 20 Sep 2016 17:09:39 +0200 (CEST) Received: by mail-qk0-f180.google.com with SMTP id t7so17992658qkh.2 for ; Tue, 20 Sep 2016 08:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:message-id:date:to:mime-version; bh=8Kqbt6v16LV/jKpkN+jE3CeC/fRI6FwFrjKUXMMwXhM=; b=kydCfV3tEV3Hs8VYKe9Y5zVaE/etKLVTA1zdmMYH8OnW7HgaDpI3JR+EMu6yDE3Oxm 7IXWsca4DNYnwYx3FQsWU7Sj/K42tQlMc+GJZWP9ETdyG9Yxu55v2MgJ5+tuZtO34ATc saot3BR3Yad92pNXnWLc3NKcEBzdys1fuM3StGRJxSFkJ08unG8fbBX4jJ7itvk2WfT+ YFAOEgnD0D9ZMC+5yztcnBSwfXx3kEvCCqHmQVRbT2EizcMGkVI4r8mkWib8Wc0O3ask yWRBtnfkD6BCF92/JqqUdjWJYtP/Mzld8RLVm/mbFj46w+Hh78/eaNgQafiZdBSDcdB0 m7ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:message-id:date:to:mime-version; bh=8Kqbt6v16LV/jKpkN+jE3CeC/fRI6FwFrjKUXMMwXhM=; b=eOR29Tdp8ddJxTSV8lbqHhCyL5190uapIei/NC0W0BzBWm8cJpfXr9L+SkL4hOG8iR W5+XbVzycGFXShyBI7uv/D6DgWPjoodmyOFbvM1VRBxUxxzfaKVU3q1bB4cANldJCnqF 7uUvm3qDaNAzuGHwu8zPjmvrYsgVvuMK2/LfRNyVqSt0DSFLEEHt6bdIiRLX/93TTWyk VDBS/eMH3MAXexaTK8urpurKoFJik7E4hGTHQYVV94JWfHLGDkwNsguKHsH/UNBYTkeo IfHjdlOyPRrpexMdJCB3Me6al19/YMng2TIE/bjzAozYx5YW5fyKk8q9SfeCVTM4/vVb LKjg== X-Gm-Message-State: AE9vXwOZ0ACb52dWYJ28oIQoJBVGe6KUzKzvTqQRpH+JbsQS4/wSMdU2p7fu2yQe3FgHNw== X-Received: by 10.55.20.28 with SMTP id e28mr36370668qkh.269.1474384178264; Tue, 20 Sep 2016 08:09:38 -0700 (PDT) Received: from [172.30.138.110] (natp-128-119-202-102.wireless.umass.edu. [128.119.202.102]) by smtp.gmail.com with ESMTPSA id j36sm16258899qte.48.2016.09.20.08.09.37 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Sep 2016 08:09:37 -0700 (PDT) From: xiaozhe shao Message-Id: Date: Tue, 20 Sep 2016 11:09:36 -0400 To: users@dpdk.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Using 1Gbps NIC to send packets, but only get 100Mbps speed X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 15:09:39 -0000 Hi all, I=E2=80=99m sending packet by rte_eth_tx_burst() function. With = 1Gbps NIC, I just get 100Mbps speed. I use the following code to send packets (In order to send = packets, I keep calling rte_eth_tx_burst). for (i=3D0; i < BURST_SIZE;){ i =3D i + rte_eth_tx_burst(port, queue, buffer + i, BURST_SIZE - = i); } My NICs are =E2=80=9CIntel Corporation 82572EI Gigabit Ethernet = Controller (Copper) (rev 06)=E2=80=9D and =E2=80=9CIntel Corporation = 82576 Gigabit Ethernet Connection (rev 01)=E2=80=9D. When I get the link = state through DPDK, the link_speed is 1000.=20 I try testpmd with the instructions of = =E2=80=9Chttp://dpdk.org/doc/quick-start = =E2=80=9D. It works well. No dropped = packets. When I send packets with 60 bits length, the rate is only about = 140000 pps. When I send packets with 1500 bits length, the rate is about = 8000 pps. I only get 100Mbps sending speed.=20 My OS is =E2=80=9CLinux 3.2.0-4-amd64 #1 SMP Debian 3.2.81-1 = x86_64 GNU/Linux=E2=80=9D. I tried DPDK-2.2.0 and DPDK-16.07. The = results are same. I also found a strange thing. If I send the packet that has the = destination MAC same with the MAC address of the NIC that sends the = packet, I can get 1.4Mpps with the 60-bit-length packets. I profile the sending program with gperf. The =E2=80=9Crte_delay_u= s=E2=80=9D consumes more than 90% running time. But I don=E2=80=99t know = the caller of =E2=80=9Crte_delay_us=E2=80=9D. In the output of gperf, = =E2=80=9Crte_delay_us=E2=80=9D is =E2=80=9Cspontaneous=E2=80=9D. I don=E2=80=99t know why I cannot get 1Gbps send speed. Did = anyone meet the similar issue? How to address it? Best regards, -xiaozhe=