From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id 05F375925 for ; Sun, 16 Feb 2014 20:01:20 +0100 (CET) Received: by mail-pd0-f174.google.com with SMTP id z10so14054018pdj.33 for ; Sun, 16 Feb 2014 11:02:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=xV5keCcVkd9d6Q2dAfTUxr4axy8ie3s2iUgdr/ENb6I=; b=AizdYUIv4XKaiXujE/08ripyTVcSJKntzZmoQ1X2tqpD044lNtsRpD7+hO2Xrfodov mWHhKIHsReHjMObYZOBAr9z4up81SCmxkm7UmX5MpUt56O2wGICOUF3JDz66DFnXO0fo BQUFNZ6qxQnFiAS7Ouio0gsSNHS5Vrw+YbPN2F18seB+O5HmHPFskhZi+pFvK17LGqSb JOoRHhrr0qw3vDEZXL8o1aGTaR65BAdfj3hOoxrTJsyAVs5X1ip4tkeqBhQyV+VKYk2V QPncqtK/Su1zKIFWCq6sDyvZgQu8Qz/283ZnwNtssF4Du51o7jGu46JAT9Iyfk3JXzhh yvKg== X-Gm-Message-State: ALoCoQn8RDBkqfT20a8lMjdm5kAEReLFDrY/Ej+6A2fnNoUXK8/WDvpkJ7owtS+xZq6GztRKM4E7 X-Received: by 10.68.196.164 with SMTP id in4mr21964420pbc.128.1392577364432; Sun, 16 Feb 2014 11:02:44 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id bc4sm38227676pbb.2.2014.02.16.11.02.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 16 Feb 2014 11:02:44 -0800 (PST) Date: Sun, 16 Feb 2014 11:02:41 -0800 From: Stephen Hemminger To: Ymo Lists Message-ID: <20140216110241.0e789750@nehalam.linuxnetplumber.net> In-Reply-To: References: <5D695A7F6F10504DBD9B9187395A21797C6E384A@ORSMSX103.amr.corp.intel.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 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: Sun, 16 Feb 2014 19:01:21 -0000 On Fri, 14 Feb 2014 15:11:29 -0500 Ymo Lists wrote: > "Enqueuing and dequeuing items from an rte_ring using the rings-based PMD > may be slower than using the native rings API. This is because Intel=AE D= PDK > 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." >=20 > Is that statement correct ? I would imagine that inlined code would be be > 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 witho= ut any perceivable gain in performance. The larger code causes more cache miss= es which actually hurt performance. Also using GCC link time optimization hel= ps to reduce any need for inlining larger code bits.