All of lore.kernel.org
 help / color / mirror / Atom feed
* ipsec tunnel performance degrade
@ 2019-04-22 14:29 Vakul Garg
  2019-04-22 17:45 ` Florian Westphal
  0 siblings, 1 reply; 18+ messages in thread
From: Vakul Garg @ 2019-04-22 14:29 UTC (permalink / raw)
  To: netdev

Hi

Post kernel 4.9, I am experiencing more than 50% degrade in ipsec performance on my arm64 based systems (with onchip crypto accelerator).
(We use only lts kernels). My understanding is that it is mainly due to xfrm flow cache removal in version 4.12.

I am not sure whether any subsequent work could recover the lost performance.
With kernel 4.19, I see that xfrm_state_find() is taking a lot of cpu (more than 15%).
Further, perf show that a lot of atomic primitives such as __ll_sc___cmpxchg_case_mb_4(), 
__ll_sc_atomic_sub_return() are being invoked. On 16 core system, they consume more than 30% of cpu.

These are getting called mainly from xfrm_lookup_with_ifid().

Can someone please help?

Regards

Vakul

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

end of thread, other threads:[~2019-05-03 15:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-22 14:29 ipsec tunnel performance degrade Vakul Garg
2019-04-22 17:45 ` Florian Westphal
2019-04-23  2:36   ` Vakul Garg
2019-04-23  5:56     ` Florian Westphal
2019-04-23 15:04       ` Vakul Garg
2019-04-23 16:25         ` Florian Westphal
2019-04-23 17:27           ` David Miller
2019-04-24  7:32             ` Vakul Garg
2019-04-24 10:40           ` [RFC HACK] xfrm: make state refcounting percpu Florian Westphal
2019-04-24 11:38             ` Eric Dumazet
2019-05-03  6:07             ` Steffen Klassert
2019-05-03  6:13               ` Vakul Garg
2019-05-03  6:22                 ` Steffen Klassert
2019-05-03  6:34                   ` Vakul Garg
2019-05-03  6:46                     ` Steffen Klassert
2019-05-03  6:48                       ` Vakul Garg
2019-05-03 12:06               ` Eric Dumazet
2019-05-03 15:55                 ` Florian Westphal

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.