From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com [209.85.220.175]) by dpdk.org (Postfix) with ESMTP id D8A5F28FD for ; Tue, 27 Sep 2016 15:41:43 +0200 (CEST) Received: by mail-qk0-f175.google.com with SMTP id j129so8240393qkd.1 for ; Tue, 27 Sep 2016 06:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:mime-version:subject:date:references:to:in-reply-to; bh=GBTiw0c7GHYKrKe9pLDxgOJoWuwq11L4s9CNRiSzWPo=; b=lkiRrCUsGO0V+mujS1K79S4lvdVBmw1Z94Cz5aK0sm7QMTuPJlsnGCgP6elJ030hVA isswdliwbUT0qTwq0dJkNjWVzwj8RxwxbNlCG2GTub1Q95f5fi4zUK+Ue/csX5Y6pO0d N+e+wfJegO/oabPViotCcoJrHBemtWmTmBiTfzRmTb0pzweOYgGcj1DX60hVV4bgmpOm cqXcCScURkSCuYjTJKS7eeEJz/B39PynKtCR/pYRqaUG2Wju/UWH+vY3ceTyVGCvXO9P RI1rD1osEre+lC6PG6CxTRlwej+eSjkULmYnD/4JbGYZqQTa09cvixECKedBGPtRrA2b aUIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:mime-version:subject:date :references:to:in-reply-to; bh=GBTiw0c7GHYKrKe9pLDxgOJoWuwq11L4s9CNRiSzWPo=; b=Xbv5CR860lh2NtOKRsgnPm9Fsa5koNBIRToK09ynraxWmkGyPbOyRdLWkVfY0IB+K2 zasvWJq57GsQiYbS+iILXRJgCwxnBmRmlfJRFV2oczUbztdB1lx6vhYlzZ3qMWS3Kvjr K7vtzsRjpkScBdgHsWs4Ewz06jkAhjmqpabloUVM56suxqQKCSzbXgkolK1nHiFmcL3A qElztieh5+OSkCA75kq4m6L5Al5pHOEPEaZCUaa/gKiR0zDZt8yJfzkeh7vJq1JGkHNa eAH/vjWJxnp66jPdmuLnDWedrkh0R9gfesrdkFpdavdy8UsMp4IRoBkMhV+u5PPn5NsT C2CA== X-Gm-Message-State: AA6/9RkneIpXvIIrL4I64FCPIAl1XhrBgt31qixsjbpmuoT2uLolbys8L25G1nl8YLlOOg== X-Received: by 10.55.181.194 with SMTP id e185mr26171229qkf.299.1474983703287; Tue, 27 Sep 2016 06:41:43 -0700 (PDT) Received: from [172.30.136.58] (natp-128-119-202-81.wireless.umass.edu. [128.119.202.81]) by smtp.gmail.com with ESMTPSA id 62sm1233964qtg.14.2016.09.27.06.41.42 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Sep 2016 06:41:42 -0700 (PDT) From: xiaozhe shao Message-Id: <9BCFFA2E-C07C-44E4-B12A-83720CF8A2F2@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Date: Tue, 27 Sep 2016 09:41:41 -0400 References: To: users@dpdk.org In-Reply-To: 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: Re: [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, 27 Sep 2016 13:41:44 -0000 Hi all, I found that the destination MAC address is the MAC address of = an active NIC (managed by Linux OS), I can get roughly line rate = (1Gbps). If the destination NIC is bind to the DPDK driver, I can only = get 100Mbps. All NICs are Gigabit-NIC. I use D-Link DGS-1024D Gigabit = switch for the NIC connection. =09 It is not the PAUSE frame. Because, I already disable the flow = control on NICs. Is there any other mechanism that limits the packet = sending speed? I googled for long time, but didn=E2=80=99t find any = possible reason. Does anyone have any suggestion? Thanks. Best regards, -xiaozhe > On Sep 20, 2016, at 11:09 AM, xiaozhe shao wrote: >=20 > Hi all, >=20 > 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). >=20 > for (i=3D0; i < BURST_SIZE;){ > i =3D i + rte_eth_tx_burst(port, queue, buffer + i, BURST_SIZE - = i); > } >=20 > 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 >=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. >=20 > 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 >=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. >=20 > 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. >=20 > 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. >=20 > I don=E2=80=99t know why I cannot get 1Gbps send speed. Did = anyone meet the similar issue? How to address it? >=20 > Best regards, > -xiaozhe