On 12.10.2023. 20:10, Vitaliy Makkoveev wrote:
> Hi, MP safe process timeouts were landed to the tree, so time to test
> them with network stack :) Diff below makes tdb and ids garbage
> collector timeout handlers running without kernel lock. Not for commit,
> just share this for tests if someone interesting.
Hi,
with this diff it seems that it's little slower than without it.
165Kpps with diff
200Kpps without diff
test1
ike esp from 10.221.0.0/16 to 10.222.0.0/16 \
local 192.168.1.1 peer 192.168.1.2 \
main auth hmac-sha1 enc aes group modp1024 lifetime 3m \
quick enc aes-128-gcm group modp1024 lifetime 1m \
psk "123"
test2
ike esp from 10.222.0.0/16 to 10.221.0.0/16 \
local 192.168.1.2 peer 192.168.1.1 \
main auth hmac-sha1 enc aes group modp1024 lifetime 3m \
quick enc aes-128-gcm group modp1024 lifetime 1m \
psk "123"
I'm sending random /24 udp traffic from host connected to test1 box
through tunnel to host connected to test2 box ...
test1 - top -SHs1
PID TID PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
20980 359894 14 0 0K 1004K sleep/3 netlock 2:26 46.58% softnet3
54870 346439 14 0 0K 1004K sleep/3 netlock 2:24 42.33% softnet4
65020 320085 42 0 0K 1004K onproc/1 - 2:22 41.60% softnet5
3723 371456 45 0 0K 1004K onproc/5 - 2:22 40.67% softnet1
16879 500721 43 0 0K 1004K onproc/4 - 2:26 39.06% softnet2
1371 446835 14 0 0K 1004K sleep/2 netlock 0:13 5.37% softnet0
test2 - top -SHs1
PID TID PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
61821 455808 10 0 0K 1004K sleep/4 bored 3:02 86.96% softnet0
77299 594039 10 0 0K 1004K sleep/1 bored 0:33 21.63% softnet4