From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) by dpdk.org (Postfix) with ESMTP id 69F207E0B for ; Sun, 26 Oct 2014 09:15:37 +0100 (CET) Received: from [62.68.100.123] by 3capp-mailcom-lxa16.server.lan (via HTTP); Sun, 26 Oct 2014 09:24:14 +0100 MIME-Version: 1.0 Message-ID: From: "Harrison Ford" To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Date: Sun, 26 Oct 2014 09:24:14 +0100 Importance: normal Sensitivity: Normal Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-Provags-ID: V03:K0:SALgEURaiqZyz3/SqHF/ucmAGm+/v8zk3ytDnfEEnzS nILK2F3CekRnsn+GNHwjmscK2vpkKlDcJuarALYCZWcTBaXL/w E37cP9g5VjzdTDZgxs0h1Ps8egd0S14pa2+Xb2kh2djp0UX9jN KKSnM91FWec34zOkHCfdndf8Z8car6G9XR7eKOkPQT24E2OK/Y bt7mnZT+uIg0snRVMb3jHkxy3SWDErxthhhcolgx1wGqED49zc B+xRCv/FZwdImohz0r4D4kHeJgEytYmKibDHiIm7f9S83YKdNe 2AVte9EJ6W3zKsmXNFDcTHNo/aD X-UI-Out-Filterresults: notjunk:1; Subject: [dpdk-dev] Packet drop issue on DPDK-based application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Oct 2014 08:15:37 -0000 Hi, all. =C2=A0 I am trying to write an application that is supposed to receive packets ov= er one interface, and before forwarding them out the other, log the src and= dst addresses into a database for statistical purposes. I started by modif= ying the l2fwd example, and everything worked perfectly until I added the d= atabase logging. After that, the number of received packets dropped to abou= t one third of the total number of sent packets (I am able to precisely det= ermine the number of sent packets, since I am using tcpreply to send packet= s from a pcap file). The database logging code is obviously slowing down th= e entire process, but I am not sure how to resolve this issue. I have tried= increasing the RX queue size (NB_RX_DESCRIPTORS value) and the memory pool= size, but nothing changed. The packets are enqueued in a ring (i.e. rte_ri= ng) where they await logging, after which they are forwarded out without an= y further processing. The application is simple enough and should be working fast enough. The in= coming packet speed is aroung 50 Mbps, which is also not that fast. The application runs on a virtual machine, and I am using a single lcore t= o test it. What should I try to solve this problem, and what is the best wa= y to debug such a behaviour? =C2=A0 Thank you. Paul