From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by dpdk.org (Postfix) with ESMTP id C72825957 for ; Mon, 17 Feb 2014 13:48:23 +0100 (CET) Received: by mail-ie0-f180.google.com with SMTP id ar20so2713342iec.11 for ; Mon, 17 Feb 2014 04:49:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SzJNugj2z3sUrkJ3zI4uXS+Bv10Us9UqLmebvqL9S0s=; b=Fn3z2EigE8MNxSEEHE+p3N86b8EZdyVdM1L9tiUrUqKQ/d5+RinwNKoha+ZLALxrp5 Q1eYfEhlJLAfkeVyvlkl6kzPVqVU9lnrw1YvTOfHQrrCPLViMm67s61tUyea9e0IyE7n gylcVxhC+17WV//7/JC+2c+f1LCzPDhq3UMQQ266nVWhuuenkM04JuddrJZmqs1CITkA qZ/wyXoaW8goOLnbN9QFepou97w+Vrhu6qrhhpqg33dzCT4Mis/RqZl7eQoru8yyQ5ru C/p5DLzi52geZ73ECDgwLZ9YS05IiUiwYIC4xtAWRoD2J8DCOXCOPC7NJ6ZYm9k7pmBB 4KdA== MIME-Version: 1.0 X-Received: by 10.42.28.69 with SMTP id m5mr17514886icc.21.1392641387961; Mon, 17 Feb 2014 04:49:47 -0800 (PST) Received: by 10.43.76.7 with HTTP; Mon, 17 Feb 2014 04:49:47 -0800 (PST) In-Reply-To: <20140216110241.0e789750@nehalam.linuxnetplumber.net> References: <5D695A7F6F10504DBD9B9187395A21797C6E384A@ORSMSX103.amr.corp.intel.com> <20140216110241.0e789750@nehalam.linuxnetplumber.net> Date: Mon, 17 Feb 2014 14:49:47 +0200 Message-ID: From: jigsaw To: Stephen Hemminger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Is it possible to have dpdk running with no dependency on a nic ? 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: Mon, 17 Feb 2014 12:48:24 -0000 Hi Stephen, Have you tried link time optimization on DPDK application? Does it decrease the I-cache miss rate evidently? thx & rgds, -Qinglai On Sun, Feb 16, 2014 at 9:02 PM, Stephen Hemminger wrote: > On Fri, 14 Feb 2014 15:11:29 -0500 > Ymo Lists wrote: > >> "Enqueuing and dequeuing items from an rte_ring using the rings-based PM= D >> may be slower than using the native rings API. This is because Intel=AE = DPDK >> Ethernet drivers make use of function pointers to call the appropriate >> enqueue or dequeue functions, while the rte_ring specific functions are >> direct function calls in the code and are often inlined by the compiler.= " >> >> Is that statement correct ? I would imagine that inlined code would be b= e >> faster than using function pointers ? > > Actually, the Intel DPDK has a bad case of inlineitis. The code for ring'= s > and other parts use inline on largish functions which bloats the code wit= hout > any perceivable gain in performance. The larger code causes more cache mi= sses > which actually hurt performance. Also using GCC link time optimization h= elps > to reduce any need for inlining larger code bits.