From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id 01BD368CD for ; Wed, 23 Jul 2014 20:07:21 +0200 (CEST) Received: by mail-pd0-f182.google.com with SMTP id fp1so2073795pdb.27 for ; Wed, 23 Jul 2014 11:08:45 -0700 (PDT) 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=u2+EWr6HRZdTxtOXNil+wtqLxGLUR+RjGHxoO0Y3qAY=; b=ORlS+98kj3PgiRc2BegRDERjZBSvJNCfI3BtXjPE8dJ1mMwlPGMxeZcMTMYeeJLS2n oDN/TPlrrHxzvBkbxCy7bOGmsowgkehQQtR7kliap2+y7eyuwO/CSJVTZgUSBhb87ZDs 8nxwGUVtpMg/oz9bSUYkRI0kh26x8GQsUlEDOBAl9wW5dQQqO3g72s4o77LJl4DX6EOj 9EIk1mK2Yj9zhr8At6c8BEto60/NjfaCpXq2/D1uqdYQO56cJn2o6C/pkix/TvSOYOHM JAkKoSmyLMQWdmnLeqsUmMdz6p+56rJsMWA7Rl2ihkzRvpOF6Te1H7piRZ1YRpb7deRc MnIQ== X-Gm-Message-State: ALoCoQlMv70cNVjMk4jjBM88GwmY4HJuU93YPuCTqzFWDhDK35u8WUK2fWvTlIWIie+JJItVMll9 X-Received: by 10.66.66.35 with SMTP id c3mr3998720pat.79.1406138925301; Wed, 23 Jul 2014 11:08:45 -0700 (PDT) Received: from haswell (static-50-53-72-226.bvtn.or.frontiernet.net. [50.53.72.226]) by mx.google.com with ESMTPSA id ug1sm11277792pac.9.2014.07.23.11.08.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jul 2014 11:08:45 -0700 (PDT) Date: Wed, 23 Jul 2014 11:08:47 -0700 From: Stephen Hemminger To: "Kavanagh, Mark B" Message-ID: <20140723110847.73cf9052@haswell> In-Reply-To: References: X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Performance - linking against DPDK shared vs static libraries 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: Wed, 23 Jul 2014 18:07:22 -0000 On Wed, 23 Jul 2014 15:58:06 +0000 "Kavanagh, Mark B" wrote: > Hi, > > I build a switching application, which links against DPDK shared libraries; when I run the application, I see throughput of X. I then build the application again, except this time I link against DPDK shared libraries, having modified the application's build parameters appropriately. In this case, I see a performance drop of around .04%, which given the high throughput of the application is significant. > > Is such performance degradation to be expected when using DPDK shared libraries, and if not, are there any best-known methods for preventing performance degradation, assuming that I may be constrained to using shared libraries going forward? > > Thanks, > Mark > -------------------------------------------------------------- > Intel Shannon Limited > Registered in Ireland > Registered Office: Collinstown Industrial Park, Leixlip, County Kildare > Registered Number: 308263 > Business address: Dromore House, East Park, Shannon, Co. Clare > > This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. > Shared libraries live on different pages and cause more TLB misses.