kcptun
kcptun copied to clipboard
Computationally expensive
Hello. kcptun is highly expensive in terms of cpu usage. How can I optimize it? I just need to forward a large number of tcp packets to another server through a udp tunnel and I don't care about encryption (so already set encryption to none). Any suggestions?
you can also disable FEC by setting -ps 0
I did a quick test, it practically makes no difference, the test results are basically the same (with marginal differences), roughly 40Mb/s at 100% CPU(crappy vps), with -ps 0 or default.
Can confirm in log the parameter is set correctly:
Sep 18 21:51:56 Zeta client[5418]: 2022/09/18 13:51:56 datashard: 10 parityshard: 0
use hardware accelerated encryption algorithm, eg: aes
I’m using none in both tests.