Project

General

Profile

Issue #3298

strategies to improve strongswan performance per single SA

Added by Edvinas Kaikaris 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Affected version:
5.7.2
Resolution:

Description

hello,

Im searching for the ways to improve performance System interrupts and load balancing between multiple cores/threads.

so far this command seems lower CPU by ~5%. - tuned-adm profile network-throughput,

tried to improve the RPS: by command:
echo "fff" | tee /sys/class/net/p1p1/queues/rx-{0..11}/rps_cpus
echo "fff" | tee /sys/class/net/p1p2/queues/rx-{0..11}/rps_cpus
echo "fff" | tee /sys/class/net/p2p1/queues/rx-{0..11}/rps_cpus
echo "fff" | tee /sys/class/net/p2p2/queues/rx-{0..11}/rps_cpus

after this the load started not loadbalancing between cores, but the process itself started to jump beetween all cores.
Any more suggestions ?
Thanks

History

#1 Updated by Edvinas Kaikaris 9 months ago

also, by "improving" rps, the system interrupts almost doubled.

#2 Updated by Edvinas Kaikaris 9 months ago

Edvinas Kaikaris wrote:

also, by "improving" rps, the system interrupts almost doubled.

I'm planning to try increase default queue counf from 12 to 64.

sudo ethtool -L p1p1 combined 64
sudo ethtool -L p1p2 combined 64
sudo ethtool -L p2p1 combined 64
sudo ethtool -L p2p2 combined 64

and to try to swtich off the

TSO and GSO features.

Maybe you have any other recommendations ?

ethtool -K [] tso off
ethtool -K [] gso off

Also available in: Atom PDF