All of lore.kernel.org
 help / color / mirror / Atom feed
* Performance - linking against DPDK shared vs static libraries
@ 2014-07-23 15:58 Kavanagh, Mark B
       [not found] ` <DC5AD7FA266D86499789B1BCAEC715F846BA3C50-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Kavanagh, Mark B @ 2014-07-23 15:58 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Performance - linking against DPDK shared vs static libraries
       [not found] ` <DC5AD7FA266D86499789B1BCAEC715F846BA3C50-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-07-23 16:37   ` Antti Kantee
       [not found]     ` <53CFE4C6.7080506-jIVgJlTk8bs@public.gmane.org>
  2014-07-23 18:08   ` Stephen Hemminger
  1 sibling, 1 reply; 6+ messages in thread
From: Antti Kantee @ 2014-07-23 16:37 UTC (permalink / raw)
  To: Kavanagh, Mark B, dev-VfR2kkLFssw

On 23/07/14 15:58, 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?

Do you mean .04% or 4%?  I would be more inclined to believe the latter. 
  Shared libraries are inherently slower due to indirection from PIC, 
and being required to use them seems like a silly constraint in the 
context of high-performance computing.

   - antti

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Performance - linking against DPDK shared vs static libraries
       [not found] ` <DC5AD7FA266D86499789B1BCAEC715F846BA3C50-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  2014-07-23 16:37   ` Antti Kantee
@ 2014-07-23 18:08   ` Stephen Hemminger
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Hemminger @ 2014-07-23 18:08 UTC (permalink / raw)
  To: Kavanagh, Mark B; +Cc: dev-VfR2kkLFssw

On Wed, 23 Jul 2014 15:58:06 +0000
"Kavanagh, Mark B" <mark.b.kavanagh-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Performance - linking against DPDK shared vs static libraries
       [not found]     ` <53CFE4C6.7080506-jIVgJlTk8bs@public.gmane.org>
@ 2014-07-23 21:43       ` Kavanagh, Mark B
       [not found]         ` <DC5AD7FA266D86499789B1BCAEC715F846BA3CFA-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Kavanagh, Mark B @ 2014-07-23 21:43 UTC (permalink / raw)
  To: Antti Kantee, dev-VfR2kkLFssw



-----Original Message-----
From: Antti Kantee [mailto:pooka-jIVgJlTk8bs@public.gmane.org] 
Sent: Wednesday, July 23, 2014 5:37 PM
To: Kavanagh, Mark B; dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [dpdk-dev] Performance - linking against DPDK shared vs static libraries

On 23/07/14 15:58, 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?

>Do you mean .04% or 4%?  I would be more inclined to believe the latter. 
>Shared libraries are inherently slower due to indirection from PIC, and being required to use them seems like a silly constraint in the context of high-performance computing.
 > - antti

It's actually the former, and I agree with your assertion regarding the constraint! 
I take it from your response then that the performance drop when using shared libraries is expected behavior?
--------------------------------------------------------------
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Performance - linking against DPDK shared vs static libraries
       [not found]         ` <DC5AD7FA266D86499789B1BCAEC715F846BA3CFA-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2014-07-23 21:56           ` Matthew Hall
       [not found]             ` <20140723215614.GA19555-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Matthew Hall @ 2014-07-23 21:56 UTC (permalink / raw)
  To: Kavanagh, Mark B; +Cc: dev-VfR2kkLFssw

On Wed, Jul 23, 2014 at 09:43:49PM +0000, Kavanagh, Mark B wrote:
> I take it ... that the performance drop when using shared libraries is 
> expected behavior?

s/expected behavior/and unavoidable consequence/g

;)

Matthew Hall.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Performance - linking against DPDK shared vs static libraries
       [not found]             ` <20140723215614.GA19555-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
@ 2014-07-24 14:02               ` Kavanagh, Mark B
  0 siblings, 0 replies; 6+ messages in thread
From: Kavanagh, Mark B @ 2014-07-24 14:02 UTC (permalink / raw)
  To: Matthew Hall; +Cc: dev-VfR2kkLFssw

Many thanks to all for your help.

-----Original Message-----
From: Matthew Hall [mailto:mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org] 
Sent: Wednesday, July 23, 2014 10:56 PM
To: Kavanagh, Mark B
Cc: Antti Kantee; dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [dpdk-dev] Performance - linking against DPDK shared vs static libraries

On Wed, Jul 23, 2014 at 09:43:49PM +0000, Kavanagh, Mark B wrote:
> I take it ... that the performance drop when using shared libraries is 
> expected behavior?

s/expected behavior/and unavoidable consequence/g

;)

Matthew Hall.
--------------------------------------------------------------
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-24 14:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 15:58 Performance - linking against DPDK shared vs static libraries Kavanagh, Mark B
     [not found] ` <DC5AD7FA266D86499789B1BCAEC715F846BA3C50-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-07-23 16:37   ` Antti Kantee
     [not found]     ` <53CFE4C6.7080506-jIVgJlTk8bs@public.gmane.org>
2014-07-23 21:43       ` Kavanagh, Mark B
     [not found]         ` <DC5AD7FA266D86499789B1BCAEC715F846BA3CFA-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-07-23 21:56           ` Matthew Hall
     [not found]             ` <20140723215614.GA19555-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-07-24 14:02               ` Kavanagh, Mark B
2014-07-23 18:08   ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.